fpen3d - udot = udot'; u % %Derivatives for Problem 2...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function udot=fpen3d(t,u) f %Given k = 8; %N/m m = 1; %kg r_o = 1.5;%m r %Derivatives for Problem 1 udot(1) = u(2); udot(2) = u(1)*u(4)^2-(k/m)*u(1)+(k/m)*r_o; udot(3) = u(4); udot(4) = -2*u(2)*u(4)/u(1);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: udot = udot'; u % %Derivatives for Problem 2 udot(1) = u(2); udot(2) = u(1)*.5^2-(k/m)*u(1)+(k/m)*r_o; udot(3) = .5; udot(4) = 0; udot = udot'; u return...
View Full Document

This document was uploaded on 10/24/2010.

Ask a homework question - tutors are online