bertiqwerty / exmex

Math parser and evaluator in Rust, capable of partial differentiation, allows the use of custom operators.
Apache License 2.0
39 stars 6 forks source link

More common math binary operators such as atan2 #51

Closed zopieux closed 10 months ago

zopieux commented 10 months ago

exmex (partial) derivation feature is awesome but the lack of some common math/trigonometry binary operators reduces its general usefulness. It'd be awesome if operators like atan2 were implemented, including their derivatives.

bertiqwerty commented 10 months ago

What else except atan2 is missing?

zopieux commented 10 months ago

Actually it looks like it's pretty much the only binary one. On the unary side, perhaps the h variants of the various a*h like atanh etc. You can use that list as reference: https://docs.sympy.org/latest/modules/functions/elementary.html: it mentions atan2, asinh, etc.

bertiqwerty commented 10 months ago

What is you use case that you need functions like atanh or asinh?

bertiqwerty commented 10 months ago

atan2 has been implemented in #52 with function call syntax atan2(y, x).