Numerical Components for .NET
Namespace: Extreme.Mathematics.CurvesAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 4.2.11333.0 (4.2.12253.0)
[SerializableAttribute] public class Polynomial : PolynomialBase, IFormattable
<SerializableAttribute> _ Public Class Polynomial _ Inherits PolynomialBase _ Implements IFormattable
[SerializableAttribute] public ref class Polynomial : public PolynomialBase, IFormattable
[<SerializableAttribute>] type Polynomial = class inherit PolynomialBase interface IFormattable end
Use the Polynomial class to represent ordinary polynomials. A polynomial is an algebraic expression consisting of one or more summed terms, each term consisting of a constant multiplier and a variable raised to an integral exponent. It inherits from Curve and provides specialized implementation for most methods.
The parameters of a Polynomial correspond to the coefficients of the polynomial. The coefficients can be accessed through the indexed Coefficient[([( Int32])]) property. In C#, this property is the indexer for this class.
The ValueAt(Double) method returns the value of the polynomial at a specific point. SlopeAt(Double) returns the derivative of the Line. Integral(Double, Double) evaluates the definite integral over a specified interval.
The FindRoots()()()() method attempts to find all real roots of the polynomial. It returns a Double array. The corresponding FindComplexRoots()()()() method attempts to find all complex roots, and returns them as an array of DoubleComplex values. The roots are sorted in order of ascending real part.
Methods for arithmetic operations on polynomials have been defined. Corresponding operator overloads are available for those languages that support them.
Copyright © 2003-2013, Extreme Optimization. All rights reserved. Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc. Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo are registered trademarks of Microsoft Corporation.