PolynomialFromCoefficients Method |
Initializes a new polynomial with the given coefficients.
Namespace:
Meta.Numerics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static Polynomial FromCoefficients(
params double[] coefficients
)
Public Shared Function FromCoefficients (
ParamArray coefficients As Double()
) As Polynomial
public:
static Polynomial^ FromCoefficients(
... array<double>^ coefficients
)
static member FromCoefficients :
coefficients : float[] -> Polynomial
Parameters
- coefficients
- Type: SystemDouble
The coefficients of the polynomial.
Return Value
Type:
PolynomialThe specified polynomial.
Remarks Coefficients should be arranged from low to high order, so that the kth entry is the coefficient of xk. For example,
to specify the polynomial 5 - 6 x + 7 x3, give the values 5, -6, , 0, 7.
See Also