AngouriMath
ToEntity
Method with 2 overloads
ToEntity(System.String)
Summary
Returns
ExpressionExample
Parsing builds the tree and computes nothing; note also that juxtaposition of a
variable and a number is a power, sox2 isx ^ 2 :
Console.WriteLine("2 + 3".ToEntity()); Console.WriteLine("2 + 3".ToEntity().Evaled); Console.WriteLine("x2".ToEntity());
Prints
2 + 3 5 x ^ 2ToEntity(System.ValueTuple{AngouriMath.Entity,System.Boolean,AngouriMath.Entity,System.Boolean})
Summary
Takes a tuple of four and builds an interval
Example
The two flags say whether each end belongs to the interval:
var iv = ((Entity)0, false, (Entity)"pi", true).ToEntity(); Console.WriteLine(iv); Console.WriteLine(iv.Contains(0)); Console.WriteLine(iv.Contains("pi"));
Prints
(0; pi] False True
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online