ydiff

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 17:31, 18 November 2010 by Admin (talk | contribs) (1 revision: Initial import)
Jump to navigationJump to search
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])

Navigation menu

Personal tools