ENGR/MTH/PHYS 25

HW Presentation Tutorial
Bruce Mayer, PE
ENGR25 * HW-37
19Jan11

Problem-1
%
%
%
%
%
%
%
h
a
b
%
%
%
A

Bruce Mayer, PE
ENGR25 * 19Jan11
HW-37
finds trapezoid Area
ask for user
= input('h =
= input('a =
= input('b =

input
')
')
')

Calc Area
= h*(a+b)/2

h=
3
a=7
a=
7
b = 11
b=
11

© Bruce Mayer, PE • Document1 • Page 1 of 4

02).u). PE • Document1 • Page 2 of 4 . grid >> © Bruce Mayer. >> u = log(t+0.765) y= 7.888) x= 24.3963 >> y = cosh(-2.*sin(1.A= 27 Problem-2 >> x = sinh(3. 31. >> plot(t. title('Test Plot'). ylabel('u(t) (lbs)').3*t). 500).9710 >> z = tanh(88) z= 1 Problem-3 >> t = linspace(0. xlabel('t (s)').

Test Plot 4 3 2 u(t) (lbs) 1 0 -1 -2 -3 -4 0 5 10 15 20 25 30 35 t (s) Print Date/Time = 6-May-13/04:00 © Bruce Mayer. PE • Document1 • Page 3 of 4 .

PE • Document1 • Page 4 of 4 .© Bruce Mayer.