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

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 7: Line 7:
::<code>''y''[i,j] = ''a''[0] + ''a''[1]*''x''[i,j] + ''a''[2]*''x''[i,j]^2 + ... + ''a''[m]*''x''[i,j]^m</code>
::<code>''y''[i,j] = ''a''[0] + ''a''[1]*''x''[i,j] + ''a''[2]*''x''[i,j]^2 + ... + ''a''[m]*''x''[i,j]^m</code>
::<code>with: m = polynom order = ncol(''a'')-1</code>
::<code>with: m = polynom order = ncol(''a'')-1</code>
;See also: [[Programmer_Guide/Command_Reference/EVAL/rpolyreg|rpolyreg]], [[Programmer_Guide/Command_Reference/EVAL/interp|interp]]
;See also: [[../rpolyreg|rpolyreg]], [[../interp|interp]]


[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]]
[[../#Functions|<function list>]]

Revision as of 11:37, 21 April 2011

Evaluate polynom with real coefficients.

Usage
rpolyreg(a, x):
a
a vector containing the polynom coefficients
x
a scalar, vector or number
Result
The result y has the same type as x.
y[i,j] = a[0] + a[1]*x[i,j] + a[2]*x[i,j]^2 + ... + a[m]*x[i,j]^m
with: m = polynom order = ncol(a)-1
See also
rpolyreg, interp

<function list>

Navigation menu

Personal tools