Haskell-Things / ImplicitCAD

A math-inspired CAD program in haskell. CSG, bevels, and shells; 2D & 3D geometry; 2D gcode generation...
https://implicitcad.org/
GNU Affero General Public License v3.0
1.33k stars 141 forks source link

Non-standard Order of operations with exponents #428

Closed benjamin-edward-morgan closed 1 year ago

benjamin-edward-morgan commented 2 years ago

For escad code:

echo(2*3^2);
echo(-2^2);

I would expect:

18.0
-4.0

But instead I get:

36.0
4.0
julialongtin commented 1 year ago

should be fixed! let us know if you have any more problems with this.