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

Binary function call #52

Closed bertiqwerty closed 10 months ago

bertiqwerty commented 10 months ago

Addresses issues #51 and #41

All binary operators can be used either like a op b or like op(a, b). Thereby, the latter will be interpreted as ((a) op (b)). For instance

atan2(y * 2, 1 / x) * 2

and

((y * 2) atan2 (1 / x)) * 2

are equivalent. As a side-product, atan2 has been added to the list of default-operators.