Programmer Guide/Command Reference/EVAL/yint: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
(initial import) |
m (1 revision: Initial import) |
(No difference)
|
Revision as of 17:31, 18 November 2010
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