Polynomial Class |
The Polynomial type exposes the following members.
| Name | Description | |
|---|---|---|
| Polynomial | Constructs the zero polynomial, that is, the polynomial, p(x), that satisfies p(x) = 0 for all x. | |
| Polynomial(Double) | Constructs a Polynomial instance with the given coefficients. | |
| Polynomial(DoubleVector) | Constructs a Polynomial instance with the given coefficients. | |
| Polynomial(DoubleVector, DoubleVector) | Constructs a polynomial which passes through the given set of points. | |
| Polynomial(DoubleVector, OneVariableFunction) | Construct a polynomial that interpolates a function. If the number of interpolation points is n, then the constructed polynomial, p(x), will be have degree n - 1 and agree with the passed function at the passed interpolation points. Specifically, p will satisfy p(interpolationPoints[i]) = function(interpolationPoints[i]) for each i = 0, 1,...,n. | |
| Polynomial(SerializationInfo, StreamingContext) | Constructs a Polynomial instance from serialization information. |
| Name | Description | |
|---|---|---|
| Coeff | Gets and sets the cofficients of this polynomial. | |
| Degree | Gets the degree of the polynomial encapsulated by this object. | |
| Differentiator |
Gets and sets the differentiation method object associated with this function.
(Inherited from OneVariableFunction) | |
| Func |
Gets the function encapsulated by this object.
(Inherited from OneVariableFunction) | |
| Integrator |
Gets and sets the integration method object associated with this function.
(Inherited from OneVariableFunction) |
| Name | Description | |
|---|---|---|
| Add(Double, Polynomial) | Adds a polynomial and a scalar. | |
| Add(Polynomial, Polynomial) | Adds two polynomials. | |
| Add(Polynomial, Double) | Adds a polynomial and a scalar. | |
| AntiDerivative | Returns the anti-derivative (indefinite integral) of this polynomial. | |
| Clone |
Creates a deep copy of this polynomial.
(Overrides OneVariableFunctionClone) | |
| Derivative | Returns the first derivative of this polynomial. | |
| Differentiate |
Computes the numerical derivative of the current function at the given
x-value.
(Inherited from OneVariableFunction) | |
| Divide | Divides a polynomial by a scalar. | |
| Equals |
Tests for equality of this polynomial and another polynomial. Two polynomials
are equal if their coefficient vectors have the same dimensions and all values are
equal.
(Overrides ObjectEquals(Object)) | |
| Evaluate(Double) |
Evaluates the current function at the given x-value.
(Inherited from OneVariableFunction) | |
| Evaluate(DoubleVector) |
Evaluates the current function at the given set of x-values.
(Inherited from OneVariableFunction) | |
| Evaluate(OneVariableFunction) |
Creates a composite function.
(Inherited from OneVariableFunction) | |
| EvaluateComplex | Evaluates the current function at the given complex x-value. | |
| EvaluatePoly | Evaluates the current function at the given x-value. | |
| GetHashCode |
Returns an integer hash code for this polynomial.
(Overrides ObjectGetHashCode) | |
| GetObjectData | Implemented as part of the ISerializable interface. Serializes self to a stream. | |
| Integrate |
Computes the integral of the current function over the specified
interval.
(Inherited from OneVariableFunction) | |
| Multiply(Double, Polynomial) | Multiplies a polynomial and a scalar. | |
| Multiply(Polynomial, Polynomial) | Multiplies two polynomials. | |
| Multiply(Polynomial, Double) | Multiplies a scalar and a polynomial. | |
| Negate | Negates a polynomial. | |
| PolynomialDivide | Divides two polynomials to yield quotient and remainder Polynomials. | |
| Reduce | Removes trailing zeros from the coefficient vector. | |
| Subtract(Double, Polynomial) | Subtracts a polynomial from a scalar. | |
| Subtract(Polynomial, Polynomial) | Subtracts a polynomial from a polynomial. | |
| Subtract(Polynomial, Double) | Subtracts a scalar from a polynomial. | |
| ToString |
Returns a formatted string representation of this polynomial.
(Overrides ObjectToString) | |
| ToString(String) | Returns a formatted string representation of this polynomial using specified numeric format. |
| Name | Description | |
|---|---|---|
| Addition(Double, Polynomial) | Adds a scalar and a polynomial. | |
| Addition(Polynomial, Polynomial) | Adds two polynomials. | |
| Addition(Polynomial, Double) | Adds a polynomial and a scalar. | |
| Division(Polynomial, Double) | Divides a polynomial by a scalar. | |
| Equality(Polynomial, Polynomial) | Tests for equality of two polynomials. Two polynomials are equal if their coefficient vector have the same dimensions and all values are equal. | |
| Inequality(Polynomial, Polynomial) | Tests for inequality of two polynomials. Two polynomials are unequal if their coefficient vectors have different dimensions or their values are not all equal. | |
| Multiply(Double, Polynomial) | Multiplies a scalar and a polynomial. | |
| Multiply(Polynomial, Polynomial) | Multiplies two polynomials. | |
| Multiply(Polynomial, Double) | Multiplies a polynomial and a scalar. | |
| Subtraction(Double, Polynomial) | Adds a polynomial from a scalar. | |
| Subtraction(Polynomial, Polynomial) | Subtracts a polynomial from another polynomial. | |
| Subtraction(Polynomial, Double) | Subtracts a scalar from a polynomial. | |
| UnaryNegation(Polynomial) | Negates the polynomial. |
| Name | Description | |
|---|---|---|
| differentiator_ | Differentiator (Inherited from OneVariableFunction) | |
| function_ | Captured function (Inherited from OneVariableFunction) | |
| integrator_ | Integrator (Inherited from OneVariableFunction) |