AngouriMath

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 equation that is assumed to equal 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 }
{ ln(-sqrt(-2) / (-1 - i)) / i / a, ln(sqrt(-2) / (-1 - i)) / i / a }

























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