Hi everyone!

I am trying to write a program calculating pi.
The formula I would like to use is
pi = 4x( (1/1) - (1/3) + (1/5) - (1/7) + (1/9) - (1/11) .... )
or
$pi = 4x ( (1/$y) - ....)

My problem is how to raise the $y by 2 and how to switch "+" and "-" while calculating the formula.


For any hints on how to to it or where to find any documentation about that, I`d be really grateful.

Thanks for your support in advance.

Cheers,

Sven

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to