AngouriMath

Try it live

Navigation

← Back to list of members

SolveEquation​(AngouriMath.​Entity,​AngouriMath.​Entity.​Variable)

 Method (no overloads)

Summary

Solves one equation over one variable

Parameter "equation"

An expression that is assumed to equal 0, or an equality a = b, read as a - b = 0

Parameter "var"

Variable whose values we are looking for

Returns

A Set of possible values or intervals of values

Example

Entity eq1 = "x^2 - 1";
Console.WriteLine(MathS.SolveEquation(eq1, "x"));

Entity eq2 = "sin(a u) - cos(a u)";
Console.WriteLine(MathS.SolveEquation(eq2, "u"));

Prints
{ 1, -1 }
union({ (ln(sqrt(i)) / i + 2 * pi * n) / a, (ln(-sqrt(i)) / i + 2 * pi * n) / a }, n in ZZ)

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6018 pages online