asc-community/AngouriMath

pow function is not parsing correctly

Opened this issue · 2 comments

NK01 commented

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''

Use ^ for power

NK01 commented

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