home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / e / e067 / 1.ddi / ARITH.MTH < prev    next >
Encoding:
Text File  |  1988-11-02  |  857 b   |  27 lines

  1. ; Does operations on numbers like a calculator
  2. 5 (9 - 3) / 2
  3. ; Uses exact rational arithmetic
  4. 1/2 + 1/6
  5. ; Uses as many digits as necessary for exact arithmetic
  6. 5^99
  7. ; Press Esc & select Factor then select Transfer Demo
  8. 54!
  9. ; Returns the principal root of square roots
  10. SQRT 9
  11. ; Simplifies fractional powers
  12. (2/27)^(2/3)
  13. ; Some of these simplifications are tricky
  14. SQRT (5 + SQRT 24) + SQRT (5 - SQRT 24)
  15. ; i with a hat represents the imaginary SQRT(-1)
  16. SQRT (-1)
  17. ; You can enter i-hat as #i and do complex arithmetic
  18. (1 + 2 #i) (3 + #i)
  19. ; Complex denominators are automatically rationalized
  20. (2 + #i) / (#i + 1)
  21. ; Fractional powers default to the principal root
  22. (-8)^(1/3)
  23. ; Fractional powers of complex numbers are simplified
  24. SQRT (55/36 + 4/3 #i)
  25. ; You can enter infinity as inf and combine it with itself or numbers
  26. inf + inf + 5
  27.