mexprp icon indicating copy to clipboard operation
mexprp copied to clipboard

A math expression evaluation library for rust

Results 9 mexprp issues
Sort by recently updated
recently updated
newest added

I'm just wondering why the expression: "5%" evaluates to -0.1 rather than 0.1

- [x] add - [x] sub - [x] mul - [x] div - [x] pow - [x] sqrt - [ ] nrt - [x] abs - [x] sin - [x]...

number

- [x] add - [x] sub - [x] mul - [x] div - [ ] pow - [ ] sqrt - [ ] nrt - [ ] abs - [...

number

The ComplexFloat struct doesn't implement most of the wide variety of functions you might want from a complex number. This issue makes it very difficult to fill out the rest...

I'd like to use this, but I need it to implement serialize and deserialize. Could that be added as an optional feature?

This will allow Terms to be properly cloned, as well as traversing them easily and possibly making step by step evaluation in the future easier to implement. The original purpose...

- [x] add - [x] sub - [x] mul - [x] div - [ ] pow - [ ] sqrt - [ ] nrt - [ ] abs - [...

number

- [x] add - [x] sub - [x] mul - [x] div - [ ] pow - [ ] sqrt - [ ] nrt - [ ] abs - [...

number

This is most noticeable when inputting decimals, for example: ```rust eval::("2.2") // = becomes 2476979795053773/1125899906842624 ``` However, it also happens when integers become large enough ```rust eval::("200000000000000000000000") // = 199999999999999983222784...