CumulativeProduct - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Statistics

  

CumulativeSum

  

compute cumulative sums for a data sample

  

CumulativeProduct

  

compute cumulative products for a data sample

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

CumulativeSum(X)

CumulativeProduct(X)

Parameters

X

-

data sample

Description

• 

The CumulativeSum is a utility routine for computing cumulative sums of data.

• 

The CumulativeProduct is a utility routine for computing cumulative products of data.

• 

The first parameter X is a data sample - given as e.g. a Vector.

Examples

withStatistics:

N10

N10

(1)

h1.N1

h0.1111111111

(2)

σ0.2;r0.1

σ0.2

r0.1

(3)

URandomVariableNormal0,σsqrth

U_R

(4)

RSampleexprhσ2h2expU,N

R0.9393134401987530.9902445167661441.050430382232010.9812204754063140.9640748543418081.020452459420571.037825460041080.9711267732897370.9949683153457090.994468626738408

(5)

SCumulativeSumR

S0.9393134401987531.929557956964902.979988339196913.961208814603224.925283668945035.945736128365606.983561588406687.954688361696428.949656677042139.94412530378054

(6)

PCumulativeProductR

P0.9393134401987530.9301499836815590.9770578028917180.9587091218528600.9242673570064580.9431708976193900.9788467707192060.9505843059936220.9458012655285440.940569685697619

(7)

LineChartS,P,legend=Cumulative Sum,Cumulative Product

See Also

Statistics

Statistics[Computation]

Statistics[DataManipulation]