Open-Systems-Pharmacology / OSPSuite.FuncParser

Function parser for numeric and logic expressions used by the Open Systems Pharmacology Suite
Other
0 stars 3 forks source link

Add a TryParse method (true, false) that returns true if the formula can be parsed otherwise false #43

Closed msevestre closed 2 years ago

Yuri05 commented 2 years ago

do we need only this? or also something like TryCalc? because a valid formula still can return NaN or +-Inf.

msevestre commented 2 years ago

For me I only need to know if I can calculate the formula. If this is valid, then I will return the value fo the formula (NaN if the value is NaN)