Rank: 4206 based on 6 downloads (last 30 days) and 1 file submitted
photo

Daniel Serrano

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Daniel
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Dec 2001 Calculate PI with Gauss-Legendre Calculate pi to "c" decimal places using the Gauss-Legendre algorithm. Author: Daniel Serrano approximation, interpolation, gausslegendre, pi calculation, mathematics 6 9
  • 3.5
3.5 | 8 ratings
Comments and Ratings on Daniel's Files View all
Updated File Comment by Comments Rating
29 Oct 2009 Calculate PI with Gauss-Legendre Calculate pi to "c" decimal places using the Gauss-Legendre algorithm. Author: Daniel Serrano Millo, A

Ha, now I get it.
vpa function is a smart one, it regocnize pi by the first 16 digits and calculate pi to whatever digits you want.
try this:
my_pi = 3.141592653589793;
now compare:
vpa(pi,50)
and
vpa(my_pi)

also try
vpa(my_pi+1,50)

28 Oct 2009 Calculate PI with Gauss-Legendre Calculate pi to "c" decimal places using the Gauss-Legendre algorithm. Author: Daniel Serrano Millo, A

I thoght that Vassili and John were right but I checked.
It works very well, even to 100000 digits.

28 Oct 2009 Calculate PI with Gauss-Legendre Calculate pi to "c" decimal places using the Gauss-Legendre algorithm. Author: Daniel Serrano Millo, A
26 Feb 2006 Calculate PI with Gauss-Legendre Calculate pi to "c" decimal places using the Gauss-Legendre algorithm. Author: Daniel Serrano D'Errico, John

Vassili is absolutely correct here. Computation in 16 digit arithmetic, then calling vpa at the very end will NOT generate 60 CORRECT digits of precision. That claim is ridiculous. Boris is kidding himself, as is the author. My statement would be different had the computations been done from the start with VPA.

09 Aug 2005 Calculate PI with Gauss-Legendre Calculate pi to "c" decimal places using the Gauss-Legendre algorithm. Author: Daniel Serrano Smith, Jonathon

It should be noted that this function requires the Matlab Symbolic Math Toolbox. The 'vpa' function refers to the Variable Precision Arithmetic functionality there.

Top Tags Applied by Daniel
approximation, gausslegendre, interpolation, mathematics, pi calculation
Files Tagged by Daniel
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Dec 2001 Calculate PI with Gauss-Legendre Calculate pi to "c" decimal places using the Gauss-Legendre algorithm. Author: Daniel Serrano approximation, interpolation, gausslegendre, pi calculation, mathematics 6 9
  • 3.5
3.5 | 8 ratings

Contact us at files@mathworks.com