ydiff

From STX Wiki
< Programmer Guide‎ | Command Reference‎ | EVAL
Revision as of 09:09, 9 March 2018 by Toni (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Calculates the differentiation (differnce quotients) of the vector y = f(x).


Usage 1
ydiff(yvector {, dxscalar=1})
Result 1
The result is the vector r with nrow(y)-1elements.
r[i]=(y[i+1]-y[i])/dx; with: i=0..nrow(y)-2

Usage 2
ydiff(yvector, xvector)
Result 2
The result is the vector r with nrow(y)-1elements.
r[i]=(y[i+1]-y[i])/(x[i+1]-x[i]); with: i=0..nrow(y)-2

Usage 3
ydiff(knumber, xvector)
Result 3
The result is the vector r with nrow(y)-1elements. This version is normally used for signal differentiation (with: 0 ≤ knumber ≤ 1).
r[i]=x[i+1]-k.x[i]; with: i=0..nrow(y)-2
See also
yint

<function list>

Navigation menu

Personal tools