ydiff
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
Contents
ydiff
Calculates the differentiation r
of the vector y with n-1
elements.
Usage:
ydiff(y)
Parameters:
- y
- The y data vector.
Result:
r[i] = y[i+1] - y[i]
Usage:
ydiff(y,dx)
Parameters:
- dx
- The x increment.
Result:
r[i] = (y[i+1] - y[i])/dx
Usage:
ydiff(y,x)
Parameters:
- x
- The x data vector with
n
elements.
Result:
r[i] = (y[i+1] - y[i])/(x[i+1] - x[i])