AngouriMath

Navigation

← Back to list of members

AllowNewton

 Property

Summary

If you only need analytical solutions, disable Newton's method. What comes back
where there are none is the equation itself as a set builder: the empty set
would say the equation has no roots, which is a claim nothing established.

Example

using System;
using AngouriMath.Extensions;
using static AngouriMath.MathS;

Console.WriteLine("x5 + 3x + 1 = 0".ToEntity().Solve("x"));

using var _ = Settings.AllowNewton.Set(false);

Console.WriteLine("x5 + 3x + 1 = 0".ToEntity().Solve("x"));

Prints
{ 1.0050669478588620808778841819730587303638458251953125 + 0.93725915669289194820379407246946357190608978271484375i,
... omitting here most of the output, because it's huge
}
{ x : x ^ 5 + 3 * x = -1 } // no analytical solution was found for this quintic

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4405 pages online