ILNumerics Ultimate VS

ILMathpoly Method (InArrayDouble, InArrayDouble)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Polynomial evaluation

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.4.0.0 (5.4.7431.3055)
Syntax

public static RetArray<double> poly(
	InArray<double> c,
	InArray<double> x
)

Parameters

c
Type: ILNumericsInArrayDouble
Vector of coefficients of the polynomial
x
Type: ILNumericsInArrayDouble
Position where the polynomial is to be evaluated. The position may be either a scalar, a vector or a matrix.

Return Value

Type: RetArrayDouble
The value of a polynomial of degree d at position x, with d=c.lenght-1
Remarks

If the input position is an array, the evaluation will be done elementwise

[ILNumerics Computing Engine]

Examples

//Evaluation of the polynomial 1+x+2.1 x + x^2+3x^3 at (1,1,1)
Array<double> y = ILMath.poly(ILMath.array<double>(1.0, 2.1, 1.0, 3.0), ILMath.ones<double>(3, 1));
See Also

Reference