| PolynomialToString Method |
Returns a formatted string representation of this polynomial.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public override string ToString()
Public Overrides Function ToString As String
public:
virtual String^ ToString() override
abstract ToString : unit -> string
override ToString : unit -> string
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