Returns a formatted string representation of this polynomial.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public override string ToString()
Visual Basic (Declaration)
Public Overrides Function ToString As String
Visual C++
public:
virtual String^ ToString() override

Return Value

A formatted string representation of the form an*x^n + ... + a1*x + a0.

Remarks

Degrees of x are listing in descending order.

Examples

Polynomial p = new Polynomial( new DoubleVector( "-5 1 4 0 1 3 3 -1" ) ); Console.WriteLine( p.ToString() ); // prints "-x^7 + 3x^6 + 3x^5 + x^4 + 4x^2 + x - 5"

See Also