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

Add support for absolute values #35

Closed grantshandy closed 2 years ago

grantshandy commented 2 years ago

I love this expression evaluator, it's very fast and the api is well designed!

I'm just wondering if it's possible/planned to add the feature of evaluating absolute values, like |-1.5| as 1.5.

grantshandy commented 2 years ago

found out about abs() facepalm