Programmer Guide/Command Reference/EVAL/ydiff: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
::<code>''r''[i]=(''y''[i+1]-''y''[i])/(''x''[i+1]-''x''[i]); with: i=0..nrow(''y'')-2</code> | ::<code>''r''[i]=(''y''[i+1]-''y''[i])/(''x''[i+1]-''x''[i]); with: i=0..nrow(''y'')-2</code> | ||
---- | ---- | ||
;See also: [[ | ;See also: [[../yint|yint]] | ||
[[ | [[../#Functions|<function list>]] |
Revision as of 12:22, 21 April 2011
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)-1
elements.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)-1
elements.r[i]=(y[i+1]-y[i])/(x[i+1]-x[i]); with: i=0..nrow(y)-2
- See also
- yint