,TABLE OF CONTENTS
1. CHAPTER 1: STARTING WITH MATLAB
2. CHAPTER 2: CREATING ARRAỴS
3. CHAPTER 3: MATHEMATICAL OPERATIONS WITH ARRAỴS
4. CHAPTER 4: USING SCRIPT FILES AND MANAGING DATA
5. CHAPTER 5: TWO-DIMENSIONAL PLOTS
6. CHAPTER 6: PROGRAMMING IN MATLAB
7. CHAPTER 7: USER-DEFINED FUNCTIONS AND FUNCTION FILES
8. CHAPTER 8: POLỴNOMIALS, CURVE FITTING, AND INTERPOLATION
9. CHAPTER 9: APPLICATIONS IN NUMERICAL ANALỴSIS
10.CHAPTER 10: THREE-DIMENSIONAL PLOTS
11.CHAPTER 11: SỴMBOLIC MATH
, Chapter 1
Solved Problems
Problem 1
Script file:
clear, clc
disp('Part (a)')
(22+5.1^2)/(50-6.3^2)
disp('Part (b)')
44/7+8^2/5-99/3.9^2
Command Window:
Part (a)
ans =
4.6566
Part (b)
ans =
12.5768
Problem 2
Script file:
clear, clc
disp('Part (a)')
sqrt(41^2-5.2^2)/(exp(5)-100.53)
disp('Part (b)')
%alternative: nthroot(132,3)+log(500)/8
132^(1/3)+log(500)/8
Command Window:
Part (a)
ans =
0.8493
Part (b)
ans =
5.8685
, Problem 3
Script file:
clear, clc
disp('Part (a)')
(14.8^3-6.3^2)/(sqrt(13)+5)^2
disp('Part (b)')
45*(288/9.3-4.6^2)-1065*exp(-1.5)
Command Window:
Part (a)
ans =
43.2392
Part (b)
ans =
203.7148
Problem 4
Script file:
clear, clc
disp('Part (a)')
(24.5+64/3.5^2+8.3*12.5^3)/(sqrt(76.4)-28/15)
disp('Part (b)')
(5.9^2-2.4^2)/3+(log10(12890)/exp(0.3))^2
Command Window:
Part (a)
ans =
2.3626e+03
Part (b)
ans =
18.9551
Problem 5
Script file:
clear, clc
disp('Part (a)')
%alternative: sin(15*pi/180) instead of sind(15)
cos(7*pi/9)+tan(7*pi/15)*sind(15)
disp('Part (b)')
%alternatives: could use nthroot(0.18,3), could convert to radians
%and use regular trig functions
sind(80)^2-(cosd(14)*sind(80))^2/(0.18)^(1/3)