diary-2008-02-26 5>8 ans = 0 a=5<10 a = 1 lect9_1 y = 2 b = Columns 1 through 2 15 6 Columns 3 through 4 9 4 Columns 5 through 6 11 7 Column 7 14 c = Columns 1 through 2 8 20 Columns 3 through 4 9 2 Columns 5 through 6 19 7 Column 7 10 d = Columns 1 through 4 0 1 1 0 Columns 5 through 7 1 1 0 ans = Columns 1 through 5 0 0 1 0 0 Columns 6 through 7 1 0 ans = Columns 1 through 5 1 1 0 1 1 Columns 6 through 7 0 1 f = Columns 1 through 5 1 0 0 1 0 Columns 6 through 7 0 1 A = 2 9 4 -3 5 2 6 7 -1 B = 1 0 0 1 0 1 0 0 1 r = Columns 1 through 4 8 12 9 4 Columns 5 through 7 23 19 10 s = Columns 1 through 4 1 0 1 1 Columns 5 through 7 0 0 1 t = 8 9 4 10 w = 8 9 4 10 End of script lect9_1. t = 50 x = Columns 1 through 4 9 3 0 11 Columns 5 through 6 0 15 y = Columns 1 through 4 2 0 13 -11 Columns 5 through 6 0 4 ans = Columns 1 through 4 1 0 0 1 Columns 5 through 6 0 1 z = Columns 1 through 4 1 1 1 1 Columns 5 through 6 0 1 ans = Columns 1 through 4 0 0 0 1 Columns 5 through 6 1 0 ans = 1 ans = 0 A = Columns 1 through 4 6 2 15 9 Columns 5 through 6 7 11 ans = 1 B = Columns 1 through 4 6 2 15 9 Columns 5 through 6 0 11 ans = 0 A = Columns 1 through 4 6 0 15 0 Columns 5 through 6 0 11 ans = 1 B = Columns 1 through 4 0 0 0 0 Columns 5 through 6 0 0 ans = 0 A = Columns 1 through 4 0 9 4 3 Columns 5 through 8 7 0 0 1 Column 9 8 ans = Columns 1 through 4 2 3 4 5 Columns 5 through 6 8 9 ans = 2 5 9 B = 3 2 0 -5 0 7 0 0 1 ans = 1 2 4 8 9 ans = 1 8 r = 1 2 1 2 3 c = 1 1 2 3 3 v = 3 -5 2 7 1 B = 3 2 0 -5 0 7 0 0 1 r = 1 2 c = 1 3 v = 1 1 Tabove75 = Columns 1 through 2 0 0 Columns 3 through 4 0 0 Columns 5 through 6 0 0 Columns 7 through 8 0 0 Columns 9 through 10 0 0 Columns 11 through 12 0 0 Columns 13 through 14 0 1 Columns 15 through 16 1 1 Columns 17 through 18 1 1 Columns 19 through 20 1 1 Columns 21 through 22 0 0 Columns 23 through 24 0 0 Columns 25 through 26 0 0 Columns 27 through 28 0 0 Columns 29 through 30 0 0 NoDaysTabove75 = 7 Tbetween65and80 = Columns 1 through 4 0 1 1 0 Columns 5 through 8 0 0 0 1 Columns 9 through 12 1 1 1 0 Columns 13 through 16 1 0 0 0 Columns 17 through 20 0 0 0 1 Columns 21 through 24 0 1 0 0 Columns 25 through 28 0 1 0 1 Columns 29 through 30 0 1 NoDaysTbetween65and80 = 12 datesTbetween50and60 = Columns 1 through 2 1 4 Columns 3 through 4 5 7 Columns 5 through 6 21 23 End of script Ex9_1. Ex9_2 Please enter the number of hours worked: 35 Please enter the hourly wage in $: 8 The worker's pay is $ 280.00 Ex9_2 Please enter the number of hours worked: 50 Please enter the hourly wage in $: 10 The worker's pay is $ 550.00 watervol(8) ans = 3.9270e+03 watervol(25.7) ans = 1.4115e+04 lect9_4 Enter the value of energy to be converted: 2800 Enter the current units (J, ft-lb, cal, eV): cal Enter the new units (J, ft-lb, cal, eV): J E = 11715.5 J lect9_4 Enter the value of energy to be converted: 2800 Enter the current units (J, ft-lb, cal, eV): cal Enter the new units (J, ft-lb, cal, eV): K Error: current or new units are typed incorrectly. for k=1:3:10 x =k^2 end x = 1 x = 16 x = 49 x = 100 TaylorSine(150,3) ans = 0.6523 TaylorSine(150,7) ans = 0.5000 sind(150) ans = 0.5000 TaylorExp(2) Used 12 terms. ans = 7.3890 TaylorExp(-4) Used 18 terms. ans = 0.0183 TaylorExp(21) More than 30 terms are needed. ans = 1.2870e+09