apesic / rpncalc

A simple RPN (Reverse Polish Notation) calculator app built using Flutter
GNU General Public License v3.0
27 stars 1 forks source link

Math that is more wonky than IEEE754 #8

Closed kanashimia closed 1 year ago

kanashimia commented 3 years ago

Some interesting observations:

  1. You can achieve Infinity by entering any non-zero number, then pressing ^ret and × repeatedly
  2. Infinity ^ret results in 0
  3. Infinity Infinity × results in 0
  4. ^any_number 0 ÷ crashes UI
  5. pressing 9 ^ret yⁿ ^ret yⁿ results in a UI lockup
  6. Infinity Infinity yⁿ does the same
  7. You can achieve 0.00000000e+0 by pressing 1 ^ret 2 ^ret 1024 yⁿ ÷
  8. You can achieve NaN by acquiring 0.00000000e+0 and pressing ^any_non_zero_number +
  9. NaN has similar properties to Infinity
  10. Infinity NaN - or + or ÷ results in NaN, but Infinity NaN × results in Infinity

Seems that it was caused by: https://github.com/apesic/rpncalc/issues/5

Very cool calculator BTW

rpncalc version 1.2.0 from the fdroid, android 11