[Tutor] How to calculate pi with this formula?
Barry Sperling
barry at angleinc.com
Thu Oct 28 18:53:13 CEST 2004
As a quick thought: since you will not be interating forever, if you
know how far you will go you can calculate that denominator and
numerator by a formula, add 1, multiply that answer by the previous
denominator and numerator, add 1, etc. until the denominator gets down
to 1. It has a slightly different flavor that the previous ( formula 23 ).
Barry
Dick Moores wrote:
> Is it possible to calculate almost-pi/2 using the (24) formula on
> <http://mathworld.wolfram.com/PiFormulas.html> without using (23)?
>
> If it's possible, how about a hint? Recursion?
>
> Thanks, tutors.
>
> Dick Moores
> rdm at rcblue.com
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list