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

pow function is not parsing correctly #625

Open
NK01 opened this issue Jan 15, 2024 · 2 comments
Open

pow function is not parsing correctly #625

NK01 opened this issue Jan 15, 2024 · 2 comments

Comments

@NK01
Copy link

NK01 commented Jan 15, 2024

The version I use: AngouriMath

Unexpected behaviour or bug:
When using Entity expr = "pow(2,3)" it gives an UnhandledParseException:
AngouriMath.Core.Exceptions.UnhandledParseException: 'line 1:11 no viable alternative at input '*(2''
this is not limited to this particular input, but generalizes to any input in pow function
When using Entity expr = "pow(a,b)" it gives an UnhandledParseException:
AngouriMath.Core.Exceptions.UnhandledParseException: 'line 1:11 no viable alternative at input '*(a''

@WhiteBlackGoose
Copy link
Member

Use ^ for power

@NK01
Copy link
Author

NK01 commented Jan 28, 2024

I am using ^ for the time being and replacing all the Pow() instances from the user Input. I have also tested all the other functions, but they were working fine without issue

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

2 participants