﻿Polynomial Members

The Polynomial type exposes the following members.

Constructors

NameDescription
Polynomial()()()()
Constructs the zero polynomial, that is, the polynomial, p(x), that satisfies p(x) = 0 for all x.
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.

Methods

NameDescription
Adds a polynomial and a scalar.
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 OneVariableFunction..::..Clone()()()().)
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 Object..::..Equals(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.)
GetHashCode
Returns an integer hash code for this polynomial.
(Overrides Object..::..GetHashCode()()()().)
GetType
Gets the type of the current instance.
(Inherited from Object.)
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.
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 Object..::..ToString()()()().)
ToString(String)
Returns a formatted string representation of this polynomial using specified numeric format.

Operators

NameDescription
Adds a scalar and a polynomial.
Adds a polynomial and a scalar.
Division
Divides a polynomial by a scalar.
Equality
Tests for equality of two polynomials. Two polynomials are equal if their coefficient vector have the same dimensions and all values are equal.
Inequality
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
Negates the polynomial.

Properties

NameDescription
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.)
Function Obsolete.
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.)