arthanzel / evaluatex

Latex and ASCIIMath evaluator for Javascript.
http://arthanzel.github.io/evaluatex
MIT License
73 stars 16 forks source link

arctan from asciimath does not map to atan in Math #8

Open turing opened 4 years ago

turing commented 4 years ago

hey,

First off, was overjoyed to find this lib.

(2*arctan((36/(2*85))))*(180/PI) = Error!

(2*atan((36/(2*85))))*(180/pi) = Error!

(2*atan((36/(2*85))))*(180/PI) = 23.913

ideally:

(2*arctan((36/(2*85))))*(180/pi) = 23.913

Using the http://asciimath.org/ reference, arctan would ideally be mapped to the correct function, along with all of the others: sin, cos, tan, sec, csc, cot, arcsin, arccos, arctan, sinh, cosh, tanh, sech, csch, coth, exp, log, ln, det, dim, mod, gcd, lcm, lub, glb, min, max, f, g.

Thanks!