Serves as an abstract base class for Curve derived classes that represent polynomials.

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public MustInherit Class PolynomialBase _
	Inherits LinearCombination
C#
public abstract class PolynomialBase : LinearCombination
C++
public ref class PolynomialBase abstract : public LinearCombination

Methods

IconTypeDescription
Add(LinearCombination)
Adds another LinearCombination to this instance.
Add(Double, LinearCombination)
Adds a multiple of another LinearCombination to this instance.
Clone()
Constructs an exact copy of this instance.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
FindRoots()
Gets the set of X-coordinates where the curve crosses the X-axis.
GetCurveFitter()
Returns a CurveFitter object that can be used to fit the curve to data.
GetDerivative()
Returns a Curve that represents the derivative of this Curve.
GetHashCode()
Serves as a hash function for a particular type.
GetType()
Gets the Type of the current instance.
Integral(Double, Double)
Gets the definite integral of the curve between the specified X-coordinates.
MemberwiseClone()
Creates a shallow copy of the current Object.
OnParameterChanged(Int32, Double)
Called when a coefficient of the polynomial is changed.
OnParameterChanging(Int32, Double)
Called before the value of a curve parameter is changed.
Reduce()
Reduces the degree of a polynomial so that the leading coefficient is different from zero.
Reduce(Double)
Reduces the degree of a polynomial so that the leading coefficient is greater than the specified tolerance.
SlopeAt(Double)
Gets the slope of the curve at the specified X-coordinate.
Subtract(LinearCombination)
Subtracts another LinearCombination from this instance.
TangentAt(Double)
Gets the tangent Line to the curve at the specified X-coordinate.
ToString()
Returns a String that represents the current Object.
ValueAt(Double)
Gets the Y-value of the curve at the specified X-coordinate.

Constructors

IconTypeDescription
PolynomialBaseNew(Double[]())
Constructs a new curve with a specified set of parameters.
PolynomialBaseNew(Int32)
Constructs a new curve with the specified number of parameters.

Properties

IconTypeDescription
Basis
Gets the FunctionBasis associated with the linear combination.
Coefficient(Int32)
Gets or sets the coefficient of the function with the specified index.
Degree
Gets the degree of the polynomial.
Item(Int32)
Gets or sets the coefficient of the function with the specified index.
Parameters
Gets the collection of parameters that determine the shape of this Curve.

Remarks

This base class is provided to make it easier for implementers to create classes that implement linear combinations of specific types of univariate polynomials.

This is an abstract base class and cannot be instantiated directly. Instead, create an instance of one of the defined derived classes, or create a class that inherits from PolynomialBase.

The following derived classes have been defined:
ClassDescription
PolynomialOrdinary polynomials.
ChebyshevSeriesLinear combination of Chebyshev polynomials.

Note to inheritors: When you inherit from PolynomialBase, you should create a corresponding class that inherits from FunctionBasis. In addition, you must override the following members: ValueAt(Double), SlopeAt(Double), Integral(Double, Double). You may also want to override FindRoots() and GetDerivative().

Inheritance Hierarchy

System.Object
  Extreme.Mathematics.Curves.Curve
    Extreme.Mathematics.Curves.LinearCombination
      Extreme.Mathematics.Curves.PolynomialBase