TimTim has asked for the wisdom of the Perl Monks concerning the following question:
How to calculate the value of Pi; for the given below infinite series. The output need to be printed after each term is added, stoping after a specified term.. so teh current value need to be printed after each iteration.
Pi; = 4-(4/3)+(4/5)-(4/7)+(4/9)-(4/11)....
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: to calculate the value of π
by hdb (Monsignor) on Sep 04, 2013 at 14:14 UTC | |
Re: to calculate the value of π
by MidLifeXis (Monsignor) on Sep 04, 2013 at 13:11 UTC | |
by Laurent_R (Canon) on Sep 04, 2013 at 17:51 UTC | |
by atcroft (Abbot) on Sep 05, 2013 at 03:47 UTC | |
Re: to calculate the value of π
by fisher (Priest) on Sep 04, 2013 at 13:31 UTC | |
by keszler (Priest) on Sep 04, 2013 at 13:46 UTC | |
Obligatory comment
by space_monk (Chaplain) on Sep 04, 2013 at 14:20 UTC |
Back to
Seekers of Perl Wisdom