Files
senior-design/strut/FFunc1.m
2010-04-17 12:00:00 -05:00

10 lines
202 B
Matlab
Executable File

function FF = FFunc1(theta,P);
% Derivative of function 1
FF=derppval(P,theta)*sin(theta)+ppval(P,theta)*cos(theta);
if theta < 0
FF=-2*theta+pi;
elseif theta > pi
FF=-2*theta+pi;
end;