Programmer Guide/Command Reference/EVAL/ydiff: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)
(No difference)

Revision as of 17:31, 18 November 2010

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