We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This fails to parse, with System.FormatException: Input string was not in a correct format being thrown:
MathParser parser = new MathParser(); parser.Operators.Add("λ", (left, right) => Math.Pow(left, right)); Assert.AreEqual(Math.Pow(3, 2), parser.Parse("3λ2"));
However, if the last statement is changed to have whitespace in the expression, it parses correctly:
Assert.AreEqual(Math.Pow(3, 2), parser.Parse("3 λ 2"));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This fails to parse, with System.FormatException: Input string was not in a correct format being thrown:
However, if the last statement is changed to have whitespace in the expression, it parses correctly:
The text was updated successfully, but these errors were encountered: