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)+1elements.
r[0]=c
r[i+1]=r[i]+y[i]*dx; with: i=0..nrow(y)-1

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

Usage 2
yint(yvector {, xscalar=1 {, cscalar=0}})
Result 2
The result is the vector r with nrow(y)+1elements.
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