This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: time(s) Height (m) Height of t Velocity of t 2.11 M-FILE (lab12.m) % lab12.m % % This program solves problem 2.11 in Chapman (2008). % % Garrett Lucas % Spring 2010 % x1 = input('Enter x1:'); y1 = input('Enter y1:'); x2 = input('Enter x2:'); y2 = input('Enter y2:'); Distance=sqrt((x1-x2)^2+(y1-y2)^2) Command Window Enter x1: 2 Enter y1: 3 Enter x2: 8 Enter y2: -5 Distance = 10 2.13 M-File (lab13.m) % lab13.m % % This program solves problem 2.13 in Chapman (2008). % % Garrett Lucas % Spring 2010 % x= input('x:'); mycosh = (exp(x) + exp(-x))/2 Command Window x:3.0 mycosh = 10.0677 >> cosh(3.0) ans = 10.0677...
View Full Document
This note was uploaded on 11/09/2011 for the course CVEN 489 taught by Professor Staff during the Spring '08 term at Texas A&M.
- Spring '08