Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Pi calculator
- archgavriel
-
Scratcher
59 posts
Pi calculator
Something about the equation is wrong. i listed the python in the project, so if you graduated or something, help, bc im taking calculus next year wahhh
also https://scratch.mit.edu/projects/1377679165/ is the project :3
also https://scratch.mit.edu/projects/1377679165/ is the project :3
Last edited by archgavriel (Sept. 4, 2026 16:46:07)
- 10goto10
-
Scratcher
1000+ posts
Pi calculator
16 to the 0th power is one but your repeat block calculates it as 16 (because, well, repeating -1 times is just a skip over the code.)
the first term should be about 3.2
Scratch only has double floating point so you'll only get 15 or so digits of accuracy.
There is also a little problem with how you have snapped together the minus blocks.
I think this is the best you'll get from Scratch but one of the math people might have something better:
https://scratch.mit.edu/projects/1378244991/
the first term should be about 3.2
Scratch only has double floating point so you'll only get 15 or so digits of accuracy.
There is also a little problem with how you have snapped together the minus blocks.
I think this is the best you'll get from Scratch but one of the math people might have something better:
https://scratch.mit.edu/projects/1378244991/
Last edited by 10goto10 (Sept. 5, 2026 02:54:50)
- Discussion Forums
- » Help with Scripts
-
» Pi calculator