ydiff

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
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