Pi but not... Just read plz
So I was really bored with this whole stay at home stuff and I saw @LizFoster 's pi approximations.
I decided to try to create my own formula infinite series thing.
I started trying to use the unit circle and triangles but I don't know hardly any trig.
I then switched to using points, the distance formula, and the unit circle.
Basically what this program does is generate a lot of points on the unit circle and then calculates the distance between them.
When I tried with 1,000,000 iterations, the result was about 3.1399. It's not that accurate as you can see...
EDIT: I just edited it and tried again with 1,000,000 iterations, and it ended up being 3.1415926533 so it is a lot more accurate now
If I copied some one else's thing, please tell me.
PLEASE UPVOTE FOR THE EFFORT!
Also, check out this game: https://repl.it/talk/share/Experiment-44-a-text-based-RPG/32658
Wow! That's cool! It really is very inaccurate, but interesting nonetheless! #^__ ^#
I haven't seen it done this way, but it's a bit funny, honestly!
Good work, really!
This is actually a great method for calculating π, of course given that your square roots are accurate! I ended up getting 3.1415926533115135 as a result which is very close to 3.14159265358979323846264338327950288419716939. It seems like what you did was find the length of a 90 degree arc and then multiply by 2 to get π. That means that this is derived from the circumference formula which was, by the way, one of the first ways of approximating π which only later evolved into the modern algorithms and infinite series.