Skip to content

Latest commit

 

History

34 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

MathCanvas

MathCanvas is an interactive math and physics explorer in which one can graph equations, running statistics on data, and simulate projectile motion. One can pick a mode, change the inputs, and the graph updates.

The interesting thing is that this website didn't use any HTML tag! It was built using the python libraries Streamlit, Numpy and Matplotlib.

Live app: mathcanvas.streamlit.app or https://mathcanvas.onrender.com/

Built by Nivedh Govil.

Features

Graph Plot

Type User Inputs
Constant Value and axis (x or y)
Linear Slope (m) and y-intercept (c)
Quadratic Coefficients (a), (b), and (c)
Sine Amplitude and frequency
Cosine Amplitude and frequency
Tangent Amplitude and frequency

Statistics

Enter 3 to 10 observations and see:

  • Mean
  • Median
  • Standard deviation
  • Variance
  • Minimum
  • Maximum
  • Range

MathCanvas also draws a bar chart of those measures of the data.

Projectile Motion

Set the launch angle, initial speed, mass, and a time on the flight, and then see:

  • Time of flight
  • Range
  • Maximum height

Gravitational acceleration is fixed at 9.81 m/s^2.

View

Open the hosted website:

https://mathcanvas.streamlit.app/ or https://mathcanvas.onrender.com/

Run locally

git clone https://github.com/NivedhGovil/MathCanvas.git
cd MathCanvas
pip install -r requirements.txt
streamlit run app.py

Preview

image
image
image

Author

Nivedh Govil — GitHub