10000_digits_of_Pi.red 533 B

12345678910111213141516171819202122232425262728293031323334353637
  1. %%%%%%%%%%%%%%%%%%%%%
  2. % 10,000 DIGITS OF PI
  3. %%%%%%%%%%%%%%%%%%%%%
  4. % This file shows the power of iCAS
  5. % in computing PI to 10,000 digits
  6. %
  7. % NOTE WELL-- After computing
  8. % PI has finished, BE SURE to
  9. % scroll down to reset iCAS to
  10. % its standard settings (or else ALL
  11. % of your computations will be to
  12. % to 10,000 digits!)
  13. %
  14. % Use real arithmetic
  15. on rounded$
  16. % Set precision to 10000 digits
  17. precision(10000)$
  18. % Print Pi
  19. pi;
  20. % Set precision back to default (12)
  21. precision(12)$
  22. % Restore precise arithmetic
  23. off rounded$