yint

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 14:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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