ILNumerics Ultimate VS

ILMathpoly Method (InArraySingle, InArraySingle)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Polynomial evaluation

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

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

Parameters

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

Return Value

Type: RetArraySingle
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<float> y = Optimization.poly(ILMath.array<float>(1.0, 2.1, 1.0, 3.0),ILMath.ones<float>(3, 1));
See Also

Reference