Skip to content
Permalink
6e36eb1f01
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (10 sloc) 374 Bytes
function [dh_dtheta]=dprojectile_dtheta(theta)
%calculates the derivative of the height with respect to the initial angle
%theta
%returns the derivative
%dh_dtheta = (2.37/(cosd(theta)^2)-(((2.37^2)*4.905*2*sind(theta))/((15^2)*(cos(theta)^3))));
g=-9.81;
x=2.37;
v_mag=15;
dh_dtheta= @(theta) (x*(secd(theta))^2)-(tand(theta)*((secd(theta))^2)*g*x^2)/(v_mag^2);
end