yint

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 18:31, 18 November 2010 by Admin (talk | contribs) (1 revision: Initial import)
Jump to navigationJump to search
yint

Calculates the integration r of the vector y with nrow(y)+1 elements.

Usage:

yint(y,dx,c)

Parameters:
y
The y data vector.
dx
The x increment. If dx is not specified, the default value of 1 is used.
c
The start value (default = 0).
Result:

r[0] = c, r[i+1] = r[i] + y[i]*dx

with: i = 0 .. nrow(y)-1

Usage:

yint(y,x,c)

Parameters:
y
The y data vector.
x
The x data vector with nrow(y)+1 elements.
c
The start value (default = 0).
Result:

r[0] = c, r[i+1] = r[i] + y[i]*(x[i+1]-x[i])

with: i = 0 .. nrow(y)-1

Navigation menu

Personal tools