AngouriMath

Navigation

← Back to list of members

AllowNewton

 Property

Summary

If you only need analytical solutions and an empty set if no analytical solutions were found, disable Newton's method

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
}
{  } // nothing was found for 5-degree polynomial without numeric solution

























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