icasdri / Mather

A powerful expression-based calculator, unit converter, and general computation engine for Android
GNU General Public License v3.0
58 stars 7 forks source link

Order of operations: pemdas vs pejmdas #28

Open AeliusSaionji opened 7 months ago

AeliusSaionji commented 7 months ago

Currently, mather evaluates 1/2sqrt(3) as

1
- * sqrt(3)
2

Arguably this would be preferably read as

   1
--------
2sqrt(3)

Because "multiplication by juxtaposition" is considered a higher order operation.

reference: https://youtube.com/watch?v=4x-BcYCiKCk

Love mather!