Skip to content
New issue

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

Wrong precendence for unitary minus and exponential #62

Open
FabianNitsche opened this issue Aug 10, 2020 · 0 comments
Open

Wrong precendence for unitary minus and exponential #62

FabianNitsche opened this issue Aug 10, 2020 · 0 comments

Comments

@FabianNitsche
Copy link

I stumbled across this problem when entering the normal distribution. I could narrow the problem down to the following issue:

-(1)^2 is interpreted as (-1)^2 giving 1 as a result although it should be -1.
The same happens when parsing -1^2 which is equal to -(1)^2.

This is because the precedence of the operations is wrong. I will provide a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant