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.
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.
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.
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.
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.
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!
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?
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.
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.
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.
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.
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.
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
If you want to learn more about series equations, try this website:
http://mathrocks.thebernas.net/IntMath3/SequencesSeries/pages/arithseries/arithseriessig.htm
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.
Comments
You need to be logged in to post comments
Add a Comment
Hee Hee! I like the name!
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
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)Comment Reply
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.
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
awsumm..
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
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!
(view all replies)Comment Reply
Okay, how does this formula work because I am not following. Yeesh, cats these days, never showing there work.
(view all replies)Comment Reply
Well, this is a Series equation. You can learn about those in Wikipedia probably better than I can describe it here.
(view all replies)Comment Reply
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?
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
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)Comment Reply
sweet!! I love this!
(view all replies)Comment Reply
i get it home made pi
(view all replies)Comment Reply
pie
(view all replies)Comment Reply
lol homemade pi yum i want to eat my _ ||
(view all replies)Comment Reply
I love Knowlage!
(view all replies)Comment Reply
I love math!
(view all replies)Comment Reply
Woah!Thats awesome!
(view all replies)Comment Reply
Sorry pieclip, you are wrong.
(view all replies)Comment Reply
good but pi=3.1415962 not 3.1415926
(view all replies)Comment Reply
that's not right hazelleafkitty... but o well
(view all replies)Comment Reply
3.141592635 are the only numbers of pi that i can remember! happy pi day X3
(view all replies)Comment Reply
Yes, that is truly amazing! However, it will give you the digits in base 16......
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
you beat my pi calculator by a light year
(view all replies)Comment Reply
wow
(view all replies)Comment Reply
YOUR VERY VERY VERY VERY VERY VERY VERY STILL SMART
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
WOW DID YOU FIGER THAT ALL OUT IN YOUR HEAD AND WATS PI DAY???????????????
(view all replies)Comment Reply
Thanks!
(view all replies)Comment Reply
i like it better this way. now you can really see the change. great job on this project!
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
also, how did you manage to program it?
(view all replies)Comment Reply
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
(view all replies)Comment Reply
Weird, it works.
(view all replies)Comment Reply
I will look at that site...
(view all replies)Comment Reply
Nice project! Pi is so cool. Hehe, I love all numbers. :)
(view all replies)Comment Reply
If you want to learn more about series equations, try this website: http://mathrocks.thebernas.net/IntMath3/SequencesSeries/pages/arithseries/arithseriessig.htm
(view all replies)Comment Reply
PlanetX - You can see the limits of the series at the bottom and top of the Sigma symbol.
(view all replies)Comment Reply
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.
(view all replies)Comment Reply
what does it mean by terms?
(view all replies)Comment Reply
See other Pi projects at (link to gallery)
(view all replies)Comment Reply
Haven't a clue how BB & P came up with this amazing formula but it sure is impressive!
(view all replies)Comment Reply