Skip to content

3/8/17 #74

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions HW1/projectile.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
function h=projectile(v_mag,theta)
%input inital velocity v_mag
%input theta
angle=theta*(pi/180); %Converts the angle into radians
g=9.81; %acceleration due to gravity
x_position=2.37;%max x-position where the height will be calculated
hi=1.72; %height where the dart begins its projectile motion
vy=v_mag*sin(angle); %inital velocity in the y direction
vx=v_mag*cos(angle); %inital velocity in the x direction
t_air=x_position/vx; %The total flight time in seconds
y_d=(vy*t_air)-(.5*g*(t_air.^2)); %the y position not including the inital height
h=y_d+hi %Final height after including the inital height before thrown


%Pull function setdefaults
setdefaults
%plotting points
t= 0:.01:t_air; %range for the time from 0 to end of flight, space .01
x=vx*t %calculating x position
y_d=(vy*t)-(.5*g*(t.^2));%y position without inital height
y=y_d+hi %calculating y position
%Ploting x and y points
plot(x,y)
%axis labels and title
xlabel('x position')
ylabel('y position')
title('Projectile Motion of Darts')
end
3 changes: 3 additions & 0 deletions HW1/setdefaults.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set(0, 'defaultAxesFontSize', 16)
set(0,'defaultTextFontSize',14)
set(0,'defaultLineLineWidth',3)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Computational Mechanics
# Computational Jokes
## ME 3255 Spring 2017
### Github page: [https://github.uconn.edu/rcc02007/ME3255S2017.git]
### Public (ipynb rendering)[https://github.com/cooperrc/ME3255S2017]
Expand Down
7 changes: 5 additions & 2 deletions extra_credit_1/data.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
radius (cm), angle (degrees)
0, 0
2.25, 62
7.00, 96
3.90, 186
2.95, 166
8.60, 262
2.50, 355