Skip to main content

Poly Method

Evaluates a polynomial with given coefficients at a specified point.

Definition​

Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)

C#

public static double Poly(double x,    Object coefficients)

VB

Public Shared Function Poly (x As Double, coefficients As Object) As Double

Parameters​

  Double
Point where the polynomial needs to be evaluated.
  Object
An array of coefficients defining the polynomial, starting with the 0-th order term.

Return Value​

Double
Value of the polynomial, defined by the the given coefficients, at a specified point x.

Remarks​

If x or any coefficient is not numeric, raises an error.

Exceptions​

InvalidCastException

See Also​

Reference​

PIACEBIFunctions Class
GHost.GSharp.PI.ACE Namespace