AngouriMath
SolveEquation(System.String,AngouriMath.Entity.Variable)
Method (no overloads)
Summary
Solves the given equation
Parameter "expr"
The function of x that is assumed to be 0
Parameter "x"
The variable to solve over
Returns
A Set of roots
Example
The expression is what is set to zero, so this asks for the cube roots of unity and
gets all three of them rather than only the real one:
Prints
gets all three of them rather than only the real one:
Console.WriteLine("x ^ 3 - 1".SolveEquation("x"));Prints
{ 1, -1/2 + i * 1/2 * sqrt(3), -1/2 + i * -1/2 * sqrt(3) }Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online