CodingTrain / CodingTrain/Suggestion-Box

STEMcoding project p5.js Pi calculator

Open
#888 0 comments 0 reactions 0 assignees View on GitHub
Pi Day
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

There are a bunch of different ways to calculate Pi. We coded up what seemed to be the most interesting one. Here is the result:
http://alpha.editor.p5js.org/ChrisOrban/sketches/ByERjxMKG

Please forgive us for defining our own drawPoint function in order to make +y up and put the origin in the middle of the screen.

Here is a video that we made on the coding activity:
https://www.youtube.com/watch?v=D0-poyEALC0

Here is the step by step (including a diagram of the circle in the square):
http://www.physics.ohio-state.edu/~orban/math_coding/pi_graphical/index.html

Please feel free to reach out if you have ideas for other coding activities that would fit in well with high school math or physics classes! We can use all the help we can get!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.