Member Avatar for nekomata
nekomata

hello, I seem to have lost part of my notes an was wondering if someone could plz explain how one would use the pi formula below to display a 10000, an 20000, and a 10000 value.

pi = 4(1- 1/2 + 1/5 - 1/7 + 1/9 - 1/11 + 1/13 - ... - 1/(2i - 1) + 1/(2i + 1)

it was done in class...but now i cant find the note to look at it. I remember loops being used to explain the formula...but can someone plz be kind enough to explain?

i need this info asap....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.