PaddiM8 / kalker

Scientific calculator with math syntax that supports user-defined variables and functions, complex numbers, and estimation of derivatives and integrals
https://kalker.xyz
MIT License
1.59k stars 70 forks source link

Incorrect priority of ^ (power) #19

Closed NJdevPro closed 3 years ago

NJdevPro commented 3 years ago
>> r=2
>> (4/3)*π*r^3
33.510321638291124
>> (4/3)*πr^3
330.73361792319804

The ^ operator should apply on r alone, not πr

PaddiM8 commented 3 years ago

Thank you! I just pushed a fix.