Created
April 2, 2019 17:16
-
-
Save airicbear/3ecc30e69548ca49e765aae939833984 to your computer and use it in GitHub Desktop.
Projectile Motion Problems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# Projectile Motion / Angled: Problems I" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"vy (generic function with 1 method)" | |
] | |
}, | |
"execution_count": 1, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"g = 9.81\n", | |
"\n", | |
"# Distance\n", | |
"dx(v0, θ, t) = v0 * cos(deg2rad(θ)) * t\n", | |
"dy(v0, θ, t) = v0 * sin(deg2rad(θ)) * t - 0.5 * g * t^2\n", | |
"\n", | |
"# Velocity\n", | |
"vx(v0, θ, t) = v0 * cos(deg2rad(θ))\n", | |
"vy(v0, θ, t) = v0 * sin(deg2rad(θ)) - g * t" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Problem 1 \n", | |
"\n", | |
"A soccer ball is kicked from the ground with an initial speed of 12 m/s at an angle of 32 degrees above the horizontal. What are the x and y positions of the ball 0.50 s after it is kicked?" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"(5.088288576938556, 1.9532655853992293)" | |
] | |
}, | |
"execution_count": 2, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"v0 = 12\n", | |
"θ = 32\n", | |
"t = 0.50\n", | |
"\n", | |
"dx(v0, θ, t), dy(v0, θ, t)" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Problem 2\n", | |
"\n", | |
"A soccer ball is kicked from the ground with an initial speed of 12 m/s at an angle of 32 degrees above the horizontal. What are the x and y components of the ball's velocity 0.50 s after it is kicked?" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"(10.176577153877112, 1.4540311707984586)" | |
] | |
}, | |
"execution_count": 3, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"v0 = 12\n", | |
"θ = 32\n", | |
"t = 0.50\n", | |
"\n", | |
"vx(v0, θ, t), vy(v0, θ, t)" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Problem 3\n", | |
"\n", | |
"A softball is thrown from the origin of an x-y coordinate system with an initial speed of 18 m/s at an angle of 35<sup>o</sup> above the horizontal. Find the x and y positions of the ball at 0.50 s." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"(7.372368398600926, 3.935937927159414)" | |
] | |
}, | |
"execution_count": 4, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"v0 = 18\n", | |
"θ = 35\n", | |
"t = 0.50\n", | |
"\n", | |
"dx(v0, θ, t), dy(v0, θ, t)" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Problem 4\n", | |
"\n", | |
"A softball is thrown from the origin of an x-y coordinate system with an initial speed of 18 m/s at an angle of 35<sup>o</sup> above the horizontal. Find the x and y positions of the ball at 1.50 s." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"(22.11710519580278, 4.450313781478242)" | |
] | |
}, | |
"execution_count": 5, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"v0 = 18\n", | |
"θ = 35\n", | |
"t = 1.50\n", | |
"\n", | |
"dx(v0, θ, t), dy(v0, θ, t)" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Julia 1.0.1", | |
"language": "julia", | |
"name": "julia-1.0" | |
}, | |
"language_info": { | |
"file_extension": ".jl", | |
"mimetype": "application/julia", | |
"name": "julia", | |
"version": "1.0.1" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment