Test Your Understanding Chp01 Engr/Math/Physics 25 Test Your Understanding Chp01 Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege.edu
Error on T1.1-1(a) Shows a. = 410.1297 >> 6 + 10/13 + 18/(5*7) + 5*9^2 ans = 412.2835 >> 6 + 10/13 + 18/(5*7) + 5*(9^2)
T1.3-3
T1.3-3 Command Script From the Command Window >> t = [0:0.1:5]; >> s = 2*sin(3*t +2) + sqrt(5*t +1); >> plot(t,s), xlabel('t (seconds)'), ylabel('s (fps)'), title('Speed vs Time - ENGR25 Jun05')
T1.3-3: File → Save As...jpg
T1.3-4
T1.3-4 Command Script From the Command Window >> x = [0:0.02:1.5]; >> y = 4*sqrt(6*x + 1); >> z = 5*exp(0.3*x) - 2*x; >> plot(x,y,x,z), xlabel('distance (m)'), ylabel('force (N)'), gtext('y'), gtext('z')
T1.3-5 Command Script From the Command Window >> B = [112; 75; -67]; >> soln = A\B soln = 2.0000 -5.0000 10.0000
T1.4-1 >> T1dot4dash1 soln = 2.0000 -5.0000 10.0000
T1.4-2 Command Script >> T1dot4dash2 Enter Sphere RADIUS, R = 1.73 Asphere = 37.6099
T1.6-2 Command Script From the Command Window >> x = [-4,-1,0,2,10]; y = [-5,-2,2,5,9]; >> XgreaterY_val = x(x>y) XgreaterY_val = -4 -1 10 >> XgreaterY_indices = find(x>y) XgreaterY_indices = 1 2 5
Ex 1.6-2
T1.6-5 Total = 0; k = 0; while Total <2e+3 k = k+1; Total = 3*k^2 + Total; end disp('No. Terms = ') disp(k) disp('Sum Total = ') disp(Total) No. Terms = 13 Sum Total = 2457
T1.6-5 For Series Find the MINIMUM value of n Such That Total = 0; k = 0; while Total <2e+3 k = k+1; Total = 3*k^2 + Total; end disp('No. Terms = ') disp(k) disp('Sum Total = ') disp(Total) For Series Find the MINIMUM value of n Such That No. Terms = 13 Sum Total = 2457