yint

From STX Wiki
Jump to navigationJump to search

Calculates the integration (differnce quotients) of the vector y = f(x).


Usage 1
yint(yvector {, dxscalar=1 {, cscalar=0}})
Result 1
The result is the vector r with nrow(y)+1 elements.
r[0]=c
r[i+1]=r[i]+y[i]*dx; with: i=0..nrow(y)-1

Usage 2
yint(yvector {, dxvector=1 {, cscalar=0}})
Result 2
The result is the vector r with nrow(y)+1 elements. The argument dx contains the differences of the x values and is a vector with nrow(y) elements.
r[0]=c
r[i+1]=r[i]+y[i]*dx[i]; with: i=0..nrow(y)-1

Usage 2
yint(yvector {, xvector=1 {, cscalar=0}})
Result 2
The result is the vector r with nrow(y)+1 elements. The argument x contains the x values and is a vector with nrow(y)+1 elements.
r[0]=c
r[i+1]=r[i]+y[i]*(x[i+1]-x[i]); with: i=0..nrow(y)-1

See also
ydiff

<function list>

Navigation menu

Personal tools