home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / sci / math / 16950 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!not-for-mail
  2. From: edgar@function.mps.ohio-state.edu (Gerald Edgar)
  3. Newsgroups: sci.math
  4. Subject: Re: Pi Finder
  5. Date: 15 Dec 1992 09:37:58 -0500
  6. Organization: The Ohio State University, Dept. of Math.
  7. Lines: 31
  8. Message-ID: <1gkqk6INN1n0@function.mps.ohio-state.edu>
  9. References: <1992Dec14.165705.872@imag.fr>
  10. NNTP-Posting-Host: function.mps.ohio-state.edu
  11.  
  12. In article <1992Dec14.165705.872@imag.fr> samama@imag.imag.fr (Marc Samama) writes:
  13. >Do you know what algorithms Mma uses to calculate Pi ?
  14.  
  15. Mathematica's algorithms are mostly secret...
  16. Here is what you find in Maple:
  17.  
  18. > interface(verboseproc=2);
  19.  
  20. > evalf(Pi,100);
  21. 3.14159265358979323846264338327950288419716939937510582097494459\
  22. 2307816406286208998628034825342117068
  23.  
  24.  
  25. > print(`evalf/constant/Pi`);
  26. proc()
  27. local a,r,t;
  28. options `Copyright 1990 by the University of Waterloo`;
  29.     if Digits <= 51 then
  30.  
  31.  
  32. and so on.  The procedure to compute Pi is printed out for you.
  33. It seems that for <= 51 digits, it has Pi stored here.  For <= 10000
  34. digits, it uses bigPi, stored in the library, and in general uses
  35. a hypergeometric function.  No, it's not an arctangent.
  36.  
  37.  
  38. -- 
  39.   Gerald A. Edgar                Internet:  edgar@mps.ohio-state.edu
  40.   Department of Mathematics      Bitnet:    EDGAR@OHSTPY
  41.   The Ohio State University      telephone: 614-292-0395 (Office)
  42.   Columbus, OH 43210             -292-4975 (Math. Dept.) -292-1479 (Dept. Fax)
  43.