AngouriMath
EvalBoolean(System.String)
Method (no overloads)
Summary
Parses this and evals into a boolean by running EvalBoolean
Exception "CannotEvalException"
This thrown when the given expression is numerical, tensoric, or contains variables.
First, check whether it can be evaled: EvaluableBoolean
First, check whether it can be evaled: EvaluableBoolean
Returns
Collapses into one expression
Example
Console.WriteLine("true implies false".EvalBoolean());
Console.WriteLine("3 > 2 and 2 > 1".EvalBoolean());Prints
False
TrueAngouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online