Click or drag to resize

PolynomialToString Method

Returns a formatted string representation of this polynomial.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public override string ToString()

Return Value

String
A formatted string representation of the form an*x^n + ... + a1*x + a0.
Remarks
Degrees of x are listing in descending order.
Example
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