Jump to content

Programming Excel to Calculate Pi

Featured Replies

Could someone please tell me how to calculate pi in the windows program excel please? If you could post the solution under this thread, or just email it, I would be very grateful. THANKS!

I can't remember if the BASIC style programming in Excel allows x=x+1 style arrangements, but if it does, use pi/4=1 - 1/3 + 1/5 - 1/7 + 1/9 - . . .

 

(in basic this would be along the lines of

 

10 FOR N = 1 TO 100

20 LET Q = 1/(2N-1)

30 LET P = P + Q

40 NEXT N

50 LET P = P*4

60 PRINT P)

I may be off the mark but can't you just use:

 

=22/7

Fair enough. I thought it wouldn't be that simple.

 

=pi() gives the value to 9 dp's.

How about using a cell and writing

=ACOS(-1),

that gives you PI also, until whatever decimal precision that excel uses, probably enough for your calculations

 

Mandrake

Read the Fudging Question I reckon.

 

IE - when someone posts asking HOW to calculate Pi in Excel then Pi to 10,000 dp's isn't a very useful response.

Oooh! A new acronym!

DAMN! I could have used the acronym tag for comedy effect.

 

It's hardly new.

So? Things don't just start existing when you first encounter them.

 

Stop spamming.

By the way, "today" as an attribute of the INS tag will be wrong by tomorrow.

 

[acr=Reply Not Required]RNR[/acr]

na. i think its

 

[hide]

Rock The Filtering Queen

[/hide]

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.