This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-23 22:39:56

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

pi... an formula please!

Does anyone have a formula for calculating pi as accurately as possible?

I've seen some formulae on the web but I don't know how to use them with the operator blocks in Scratch...

Can anyone help? I'm thinking of making a project that will calculate pi to more digits than ever!  big_smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#2 2011-09-23 22:40:56

nextstorm
Scratcher
Registered: 2009-12-13
Posts: 1000+

Re: pi... an formula please!

You could draw a circle and measure it


bye

Offline

 

#3 2011-09-23 22:41:06

4lover
Scratcher
Registered: 2010-04-24
Posts: 500+

Re: pi... an formula please!

jji7skyline wrote:

Does anyone have a formula for calculating pi as accurately as possible?

I've seen some formulae on the web but I don't know how to use them with the operator blocks in Scratch...

Can anyone help? I'm thinking of making a project that will calculate pi to more digits than ever!  big_smile

Well you cant really calculate pi acurately because its an irrational number


Check out this awesome new zombie-cod type of game: http://scratch.mit.edu/projects/4lover/1975649

Offline

 

#4 2011-09-23 22:41:54

rabbit1131
Scratcher
Registered: 2009-10-16
Posts: 1000+

Re: pi... an formula please!

jji7skyline wrote:

Does anyone have a formula for calculating pi as accurately as possible?

I've seen some formulae on the web but I don't know how to use them with the operator blocks in Scratch...

Can anyone help? I'm thinking of making a project that will calculate pi to more digits than ever!  big_smile

Look in Mathwizz's projects... He has a pi generator


The Intergalactic Adventures of Revesilia! I hope you will partake in this gigantic undertaking, to build the sequel to the hit map The Adventures of Revesilia! The Intergalactic Adventures of Revesilia Map Builders Application thread! http://internetometer.com/image/35004.png

Offline

 

#5 2011-09-23 22:46:10

imnotbob
Scratcher
Registered: 2010-12-11
Posts: 1000+

Re: pi... an formula please!

rabbit1131 wrote:

jji7skyline wrote:

Does anyone have a formula for calculating pi as accurately as possible?

I've seen some formulae on the web but I don't know how to use them with the operator blocks in Scratch...

Can anyone help? I'm thinking of making a project that will calculate pi to more digits than ever!  big_smile

Look in Mathwizz's projects... He has a pi generator

This.

And your title is grammatically incorrect
http://morningglory2.files.wordpress.com/2006/11/grammarpolice.jpg


PesterChum Handle: annoyingAnchorman
durp yo terezi sup sup gotta beat john gotta beat john

Offline

 

#6 2011-09-23 22:49:25

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: pi... an formula please!

22/7?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#7 2011-09-23 22:52:05

4lover
Scratcher
Registered: 2010-04-24
Posts: 500+

Re: pi... an formula please!

JJROCKER wrote:

22/7?

That wouldnt work because that would equal 3.1428.....
Where as pi is 3.14159......


Check out this awesome new zombie-cod type of game: http://scratch.mit.edu/projects/4lover/1975649

Offline

 

#8 2011-09-24 00:13:21

Miss_Webgal
Scratcher
Registered: 2011-02-23
Posts: 500+

Re: pi... an formula please!

An formula.


https://encrypted-tbn3.google.com/images?q=tbn:ANd9GcRWYoq0FKwiXwk187zDNnI34NF0Bu12bt-zUDATzda50bhMNfsKxw

Offline

 

#9 2011-09-24 03:52:07

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: pi... an formula please!

Miss_Webgal wrote:

An formula.

My little brother pointed that out  tongue

I just posted... a little grammatic errors now and then attracts more views  tongue  (NOT!)


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#10 2011-09-24 09:05:37

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: pi... an formula please!

jji7skyline wrote:

Does anyone have a formula for calculating pi as accurately as possible?

I've seen some formulae on the web but I don't know how to use them with the operator blocks in Scratch...

Can anyone help? I'm thinking of making a project that will calculate pi to more digits than ever!  big_smile

There is not a formula for pi; however, there is an algorithm for pi.  tongue
Not everything can be done with just the math blocks. Sometimes you have to break it up into steps. Still, I'll see if I can find one and make a project that calculates the first 1,000 digits. Don't say no one cares.  tongue


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#11 2011-09-24 09:07:19

Scratchthatguys
Scratcher
Registered: 2010-07-16
Posts: 1000+

Re: pi... an formula please!

I have memorized the first 6 digits of pi. 3.14159
I didn't look it up, I promise. It's etched into my mind.

Offline

 

#12 2011-09-24 10:59:40

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Re: pi... an formula please!

Here's an ok formula which I made a scratch project about: 4/1 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11... I think it can calculate the first couple hundred digits of pi accurately.

Offline

 

Board footer