Homemade Pi

Install Java to view this project right on your browser!

user_icon Paddle2See* shared it 4 years, 2 months ago
674 views, 8 taggers, 16 people love it, 2 remixes by 2 people, 99 downloads, in 9 galleries
Add to my favorites?
Flag as inappropriate?

Comments

You need to be logged in to post comments

Add a Comment

 
TheRealFiokoius TheRealFiokoius 1 month ago

So Weird I Know 260 Digits of Pi

Paddle2See Paddle2See* 1 month ago

You must have an impressive memory!

(view all replies)
rayosun rayosun 1 month, 1 week ago

it glitches if you press scratch more than once

jumper3000 jumper3000 5 months, 1 week ago

all i know is 3.141592653589793238462643383279502884197169399375105820974944592307816406286280382534211706798214

Paddle2See Paddle2See* 5 months, 1 week ago

I think that is more than enough, for most practical purposes :)

Lix123 Lix123 9 months ago

The BBP formula is good for exctracting a small set of digits without precomputing them. But if you want to actually compute pi, use other formulas. Good example: the world record holder program y-cruncher (google it) uses Chudnovsky formula.

Paddle2See Paddle2See* 9 months ago

Thanks! I'll take a look at that.

Tigerkidcub Tigerkidcub 9 months, 3 weeks ago

3.14159265358979323846264338327950288419716939937510 That's not too bad.

Tigerkidcub Tigerkidcub 9 months, 3 weeks ago

Yayz hard math problem! math is a great thing. :)

Paddle2See Paddle2See* 9 months, 3 weeks ago

Very true :)

PiGuy314159 PiGuy314159 9 months, 4 weeks ago

@The_Master_Gamer I know up to 21 digits 3.141592653589893238462

Paddle2See Paddle2See* 9 months, 4 weeks ago

That ought to be enough for just about any practical calculation that you might want to do :)

The_Master_Gamer The_Master_Ga… 1 year, 2 months ago

I know 3.1415926535897932384626433832795

Paddle2See Paddle2See* 1 year, 2 months ago

That's a lot of digits! More accuracy than you will probably ever need :)

(view all replies)
TheScratcherOf2012 TheScratcherO… 1 year, 3 months ago

All I know is 3.1415926

Mysterygirl126 Mysterygirl126 1 year, 2 months ago

All I know is 3.14

(view all replies)
Paddle2See Paddle2See* 1 year, 3 months ago

That's more than enough, for most purposes :)

laurence12345 laurence12345 1 year, 8 months ago

This person in our school memorised 100 digits of pi. I think it was for charity.

(view all replies)
hello12345678910 hello12345678… 1 year, 2 months ago

I'v memorized almost 180.

joeylego joeylego 1 year, 6 months ago

A kid in my class memorised 235. :O

Paddle2See Paddle2See* 1 year, 8 months ago

I see you know the magic word :)

Paddle2See Paddle2See* 1 year, 8 months ago

Yeah, sines are simply the ratios of one of the sides of a right triangle to the hypotenuse :)

(view all replies)
cwn_hat5487 cwn_hat5487 1 year, 12 months ago

All I know is 3.14159265358979323846264338

Paddle2See Paddle2See* 1 year, 12 months ago

I'm pretty sure that is more than you will ever need :)

(view all replies)
superpikachu superpikachu 2 years ago

all I know is 3.14

Paddle2See Paddle2See* 2 years ago

Your friend may know many digits of Pi...but nobody knows "half" of them. Because there is an infinite number of digits of pi...it never ends! People have calculated something like a trillion digits but there are always more...

(view all replies)
Paddle2See Paddle2See* 2 years ago

That's all you need, for most calculations :)

(view all replies)
ThePCKid ThePCKid 2 years, 1 month ago

Pi! Yummy! 3.1415926535897932384626433832795028841971693993751058 is all that I know

abacussssss abacussssss 12 months ago

that's THE EXACT SAME AMOUNT i've memorized!

Paddle2See Paddle2See* 1 year, 7 months ago

Sorry, I don't think it's as simple as changing the formula and getting digits base 10. That would be cool if that worked though.

(view all replies)
Paddle2See Paddle2See* 2 years, 1 month ago

That's a lot more than I know! I used to know it to 13 places...but I never needed more than 6 for anything I ever calculated :) That's an impressive length you have memorized there though!

(view all replies)
Doody Doody 2 years, 2 months ago

Pi day isnt very important to me, because I wasnt born in the world to do maths.

dndgeek dndgeek 2 years ago

You should be a bit more open to math. There is tons of cool stuff in it.

Paddle2See Paddle2See* 2 years, 2 months ago

How do you know? Maybe you just haven't found the right teacher yet :)

manuke manuke 2 years, 2 months ago

i like it very much, can you create a project that calculated pi to an infinite number of digits after the decimal point and each figure separate stores in a list ?

Paddle2See Paddle2See* 2 years, 2 months ago

I wish I knew how to do that! I have been trying to find an algorithm that does that for years. No success, unfortunately. This one kind of does that in that each term of the series gives another digit of pi...but it gives results in base 16 :)

ahaanomegas ahaanomegas 2 years, 4 months ago

Nice project. I learnt a lot.

Sparkyasa Sparkyasa 2 years, 6 months ago

ππππ

nevit nevit 2 years, 7 months ago

Very fast way of calculating pi. It is nice to see intermediate answers.

Paddle2See Paddle2See* 2 years, 7 months ago

Thanks...yeah, I was amazed with this technique when I read about it. It converges very quickly!

complex complex 2 years, 8 months ago

I have pi to 10000 places in the description of my pi gallery

Paddle2See Paddle2See* 2 years, 8 months ago

I'd love to know the algorithm they use to churn out all those digits...I came across one once that would compute the digits in base 16 - but then how do you convert that huge base 16 fraction to base 10?

Paddle2See Paddle2See* 2 years, 8 months ago

Great! If I ever need that kind of accuracy, I'll know where to go :)

kiwi13 kiwi13 3 years, 5 months ago

Very nice :). I made a pi calculator that isn't as good, but it works: (link to project)

dapontes dapontes 3 years, 6 months ago

nice project!

buddha108 buddha108 3 years, 6 months ago

can this go more than only 10 decimal places, or is that all u programed it to do.

Paddle2See Paddle2See* 3 years, 6 months ago

An interesting thing about this technique is that if you look at it carefully, you will see the last part of the equation is a multiplier of (1/16)^n...that means that each term gives you exactly one digit of pi - in base 16! So, you could just run the rest of the equation through a loop and store the results in a list and generate pi digits to any desired accuracy. Only...the result will be in base 16, not base 10!

(view all replies)
Paddle2See Paddle2See* 3 years, 6 months ago

It actually is giving you 15 significant digits in only 10 iterations. It stopped at 10 because that's all I programmed...if you ran it more you would get more digits...BUT - the variables in Scratch have limited accuracy and can't hold much more than 15 significant digits so it won't do you any good unless you build your own storage structure somehow - maybe using a list?

(view all replies)
seabug seabug 3 years, 8 months ago

Hee Hee! I like the name!

bubble-07 bubble-07 3 years, 9 months ago

I'm working on calculating pi with more integers... But in order to do so, I first had to teach scratch how to divide to a specified amount of decimal places. Teaching scratch how to divide was hard at first, but then I looked at how us normal humans do long division, and wrote down the steps. Then, I put it into scratch code. I've also taught scratch how to add in the format that I'm using. (lists, for really big numbers!!!!) Currently, scratch has only 1 decimal place. I made it infinite.

Paddle2See Paddle2See* 3 years, 9 months ago

Well, that's cool that you've built your own number representation to any precision you want! Amazing. However, Scratch carries far better than 1 decimal place of accuracy. It is true that it only SHOWS one decimal in it's results...but internally, the numbers are represented more accuratly. You can show this by multiplying the answers by 1000 or 10000 and looking at the results.

(view all replies)
spedster777 spedster777 3 years, 11 months ago

just to let anyone know, einstein is not as smart as you think. E=mc(2) is not a formula. it is a algabreic expression so he is not knowing what E(2) is.

legolover legolover 3 years, 11 months ago

Uh, yes it is. It means that Energy=Mass x Speed of Light Squared. Say Einstein knew the energy and mass of an object. He could take energy, divide it by mass, and take the square root to find the speed of light.

macasso macasso 4 years ago

awsumm..

macasso macasso 4 years ago

E=mc2...pi...four score n, seven years ago... god i luv learning but im kinda getting sick of itt cuz the year's almost ova but at least im gonna get to go to this special camp from my school to walk (and talk!) it all off. :) but anyway cool i could have never figured this out on my own i mean just cuz im a computer geek doesn't mean i'm a complete wiz at math.

Paddle2See Paddle2See* 4 years ago

Sounds like you're ready for a vacation! I'm more of a math geek myself - I know enough programming to make the math work. Most of my math is nothing too fancy, with the exception of Perpetual Slinky where I actually got to use a tiny bit of Calculus!

Bobby500 Bobby500 4 years ago

Okay, how does this formula work because I am not following. Yeesh, cats these days, never showing there work.

Paddle2See Paddle2See* 4 years ago

Well, this is a Series equation. You can learn about those in Wikipedia probably better than I can describe it here.

(view all replies)
terminator68 terminator68 4 years ago

I have a uestion, P2S. Is there a block inScratch that multiplies numbers to the power of (^). I'm doing a advanced project using a new block I discovered from another's project. It is called abs. I've seen it before, sso I'm testing with it. I'm trying to make a number, and mabye I'll then use algebra...but, the main question is, is there a ^ brick in Scratch?

Paddle2See Paddle2See* 4 years ago

Hey! I figured out a way to do it using the functions they give you. x^n = e^( n * ln(x)). So if 'x' is your number and 'n' is the power you want to raise it to, take the Natural Log (ln) of 'x', multiply that by 'n' then use that as a power on Euler's Constant (e^). That's a really ugly way to do it but it seems to work.

(view all replies)
Paddle2See Paddle2See* 4 years ago

I am sorry to say that there is not. That is pretty strange when you consider that they give you functions for Natural Logarithm (ln) and Eulers Constant raised to a power (e^) which are functions much less commonly used then the simple 'raised to a power' function. I don't know why it is not included.

evanson827 evanson827 4 years ago

sweet!! I love this!

likegames likegames 4 years, 1 month ago

i get it home made pi

likegames likegames 4 years, 1 month ago

pie

likegames likegames 4 years, 1 month ago

lol homemade pi yum i want to eat my _ ||

Llennoccm7 Llennoccm7 4 years, 1 month ago

I love Knowlage!

Llennoccm7 Llennoccm7 4 years, 1 month ago

I love math!

Bluekingice Bluekingice 4 years, 1 month ago

Woah!Thats awesome!

Paddle2See Paddle2See* 4 years, 1 month ago

Sorry pieclip, you are wrong.

pieclip pieclip 4 years, 1 month ago

good but pi=3.1415962 not 3.1415926

Sparkyasa Sparkyasa 2 years, 6 months ago

actually pi~3.1415926

fbboi999 fbboi999 4 years, 2 months ago

that's not right hazelleafkitty... but o well

HazelleafKitty HazelleafKitty 4 years, 2 months ago

3.141592635 are the only numbers of pi that i can remember! happy pi day X3

Sparkyasa Sparkyasa 2 years, 6 months ago

it is ...653... not ...635...

Paddle2See Paddle2See* 4 years, 2 months ago

Yes, that is truly amazing! However, it will give you the digits in base 16......

Sparkyasa Sparkyasa 2 years, 6 months ago

do you need to convert each answer seperately?

chalkmarrow chalkmarrow 4 years, 2 months ago

Amazing work. I was going to try this myself, but you got there first! Great job. For those who are interested, this method is unique in that it can compute any arbitrary digit without computing the previous digits.

maki maki 4 years, 2 months ago

you beat my pi calculator by a light year

maki maki 4 years, 2 months ago

wow

75zx 75zx 4 years, 2 months ago

YOUR VERY VERY VERY VERY VERY VERY VERY STILL SMART

Paddle2See Paddle2See* 4 years, 2 months ago

75zx - No, I didn't figure out the formula...I just wrote the project that calculates values from it. Pi day is March 14 because it's the 14th day of the 3rd month so 3/14. The value of Pi is starts with the digits 3.14 so thats why 3/14 is Pi day.

75zx 75zx 4 years, 2 months ago

WOW DID YOU FIGER THAT ALL OUT IN YOUR HEAD AND WATS PI DAY???????????????

Paddle2See Paddle2See* 4 years, 2 months ago

Thanks!

planetX planetX 4 years, 2 months ago

i like it better this way. now you can really see the change. great job on this project!

Paddle2See Paddle2See* 4 years, 2 months ago

Reworked the project so all the intermediate answers are also shown - it's easier to see how the digits change with each iteration this way.

Paddle2See Paddle2See* 4 years, 2 months ago

PlanetX - The authors of the formula are three people named Bailey, Borwein, and Plouffe (last names). I don't know their first names. You should download it to look at the coding, it is really very simple. Thanks for the idea of slowing it down a bit...I'll do that.

planetX planetX 4 years, 2 months ago

also, how did you manage to program it?

planetX planetX 4 years, 2 months ago

woah. now that you explained that to me, i can see how amazing that formula is. do you know who came up with it? also, this is just a suggustion, i think you should make it go a bit slower, so you can see how the number changes by the end, because i thought it went to fast when i watched it

LIGHTGUY LIGHTGUY 4 years, 2 months ago

Weird, it works.

Robin7 Robin7 4 years, 2 months ago

I will look at that site...

Robin7 Robin7 4 years, 2 months ago

Nice project! Pi is so cool. Hehe, I love all numbers. :)

Paddle2See Paddle2See* 4 years, 2 months ago

If you want to learn more about series equations, try this website: http://mathrocks.thebernas.net/IntMath3/SequencesSeries/pages/arithseries/arithseriessig.htm

Paddle2See Paddle2See* 4 years, 2 months ago

PlanetX - You can see the limits of the series at the bottom and top of the Sigma symbol.

Paddle2See Paddle2See* 4 years, 2 months ago

PlanetX - This formula is an infinite series...to get the exact answer you would have to set the value of n to 0,1,2,3 ... all the way to infinity and add up different pieces (that sideways M symbol is called sigma and it means this is a series formula). Each time you change n you get a different "term", which just means piece of the formula. Even though you would have to add up an infinite number of terms to get an exact answer, you can see here that you get a pretty close answer after only adding up 10 terms - it "converges" on the final answer quickly.

planetX planetX 4 years, 2 months ago

what does it mean by terms?

Please Wait...