function CumulativeIntegral input Integer n "arrays size"; input Real x[n] "x"; input Real v[n] "array variable to integrate"; output Real cumInt[n] "array of cumulative integrals"; end CumulativeIntegral;