bugwheels94 / math-expression-evaluator

Math JS library. Super advanced & efficient Math expression evaluator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mexp.eval("sin(pi/2)") returns 0.027412133592044 instead of 1

MiraiTunga opened this issue · comments

mexp.eval("sin(pi/2)") returns 0.027412133592044

was expecting 1

https://www.wolframalpha.com/input?i=sin%28pi%2F2%29

By default it takes values in degree mode. For expected result do

mexp.math.isDegree = false
mexp.eval("sin(pi/2)")