Hi all,
Apologies for responding so late; the good news is that i tried using double instead of long double and the program works well. Here is an output using 100,000 terms of the Liebniz Series....
Type: Posts; User: C_Necessity
Hi all,
Apologies for responding so late; the good news is that i tried using double instead of long double and the program works well. Here is an output using 100,000 terms of the Liebniz Series....
Glad u tried it out
I'm using gcc on WinXP. In my output the third column shows 0.0000 or some weird negative values. (The printf statements r there only for diagnostic purposes). What do u think...
Hi All,
I'm trying to write a small program that approximates PI using Liebniz series (4*Pi = 1 - 1/3 + 1/5 - 1/7 + 1/9 - ...)
I think the implementation logic is correct ( though not...