I am using Infix.Parse
to parse equations like
apples + oranges = 2
Expression aleft = Infix.ParseOrThrow("apples + oranges");
Expression aright = Infix.ParseOrThrow("2");
Sometimes I need to parse fractional values, like
2.5*tax + income = 30.5
But this throws a System.Exception
Error in ...
(2.5)
^
Expecting: infix operator or ')'
There must be a way to handle such expressions in mathdotnet, but I cannot find it in the documentation. Can someone help?