我Infix.Parse
用来解析等式
apples + oranges = 2
Expression aleft = Infix.ParseOrThrow("apples + oranges");
Expression aright = Infix.ParseOrThrow("2");
有时我需要解析小数值,比如
2.5*tax + income = 30.5
但这会引发System.Exception
Error in ...
(2.5)
^
Expecting: infix operator or ')'
必须有一种方法可以在 mathdotnet 中处理此类表达式,但我在文档中找不到。有人可以帮忙吗?