Professional Documents
Culture Documents
Solutions Manual
to accompany
by
1-1
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-2
x = -5 +9i; y = 6 - 2i;
S = x +y
P = x*y
R = x/y
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-3
x = cos(0):0.02:log10(100);
length(x)
ans =
51
x(25)
ans =
1.4800
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-4
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-5
t = 0:0.01:5;
s = 2*sin(3*t+2) + sqrt(5*t+1);
plot(t,s),xlabel(0Time (sec)0),ylabel(0Speed (ft/sec)0)
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-6
x = 0:0.01:1.5;
y = 4*sqrt(6*x+1);
z = 5*exp(0.3*x)-2*x;
plot(x,y,x,z,0--0),xlabel(0Distance (m)0),ylabel(0Force (N)0 )
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-7
A*x
ans =
112 75 -67
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-8
A = 4*pi*r^2;
disp(0The surface area is:0 )
disp(A)
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-9
x = 10; y = 3;
u = x + y
u =
13
v = x*y
v =
30
w = x/y
w =
3.3333
z = sin(x)
z =
-0.5440
r = 8*sin(y)
r =
1.1290
s = 5*sin(2*y)
s =
-1.3971
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-10
y*x^3/(x-y)
ans =
-13.3333
3*x/(2*y)
ans =
0.6000
3*x*y/2
ans =
15
x^5/(x^5-1)
ans =
1.0323
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-11
x = 3; y = 4;
1/(1-1/x^5)
ans =
1.0041
3*pi*x^2
ans =
84.8230
3*y/(4*x-8)
ans =
3
4*(y-5)/(3*x-6)
ans =
-1.3333
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-12
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-13
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-14
a = (3/4)*6*7^2+4^5/(7^3-145);
b = (48.2*55-9^3)/(53+14^2);
c = 27^2/4+319^(4/5)/5+60*14^-3;
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-15
r = 4;
V = 4*pi*r^3/4;
V = 1.4*V;
r = ((3*V)/(4*pi))^(1/3)
r =
4.0656
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-16
x = -7-5i;y = 4+3i;
x+y
ans =
-3.0000 - 2.0000i
x*y
ans =
-13.0000 -41.0000i
x/y
ans =
-1.7200 + 0.0400i
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-17
(3+6i)*(-7-9i)
ans =
33.0000 -69.0000i
(5+4i)/(5-4i)
ans =
0.2195 + 0.9756i
3i/2
ans =
0 + 1.5000i
3/2i
ans =
0 - 1.5000i
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-18
x = 5+8i;y = -6+7i;
u = x + y;v = x*y;
w = x/y;z = exp(x)
r = sqrt(y);s = x*y^2;
The answers are u = −1 + 15i, v = −86 − 13i, w = 0.3059 − 0.9765i, z = −21.594 + 146.83i,
r = 1.2688 + 2.7586i, and s = 607 − 524i.
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-19
The ideal gas law predicts a pressure of 1.0004 atmospheres, while the van der Waals model
predicts 1.0158 atmospheres. Most of the difference is due to the P2 term, which models
the molecular attractions.
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-20
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-21
x=1:0.2:5;
y = 7*sin(4*x);
length(y)
ans =
21
y(3)
ans =
-4.4189
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-22
x = sin(-pi/2):0.05:cos(0);
length(x)
ans =
41
x(10)
ans =
-0.5500
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-23
a = exp(-2.1^3)+3.47*log10(14)+(287)^(1/4);
b = 3.4^7*log10(14)+(287)^(1/4);
c = (cos(4.12*pi/6))^2;
d = cos((4.12*pi/6)^2);
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-24
a = 6*pi*atan(12.5)+4;
b = 5*tan(3*asin(13/5));
c = 5*log(7);
d = 5*log10(7);
The results are a = 32.1041, b = 0.0000 − 5.0006i, c = 9.7296, and d = 4.2255. In part (b)
note that complex results are obtained from asin(x) if |x| > 1 and from tan(x) if x is
complex.
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-25
ratio=10^(1.5*7.6)/10^(1.5*5.6)
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-26
p = ([13,182,-184,2503];
r = roots(p)
r =
-15.6850
0.8425 + 3.4008i
0.8425 - 3.4008i
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-27
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-28
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-29
t = 1:0.005:3;
T = 6*log(t) - 7*exp(-0.2*t);
plot(t,T),title(0Temperature Versus Time0),...
xlabel(0Time t (min)0),ylabel(0Temperature T (◦ C)0 )
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-30
x = 0:0.01:2;
u = 2*log10(60*x+1);
v = 3*cos(6*x);
plot(x,u,x,v,0--0),ylabel(0Speed (mi/hr)0),...
xlabel(0Distance x (mi)0)
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-31
x1 = [0,pi];
x2 = [-pi,0];
x = -pi:0.01:pi;
f1 = [1,1];
f2 = -[1,1];
series = (4/pi)*(sin(x)+(1/3)*sin(3*x)+(1/5)*sin(5*x)+(1/7)*sin(7*x));
plot(x,series,x1,f1,x2,f2),xlabel(0x0 )
1.5
0.5
−0.5
−1
−1.5
−4 −3 −2 −1 0 1 2 3 4
x
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-32
r = 10;
phi = 0:0.01:4*pi;
x = r*(phi-sin(phi));
y = r*(1-cos(phi));
plot(x,y),xlabel(0x0),ylabel(0y0 )
20
18
16
14
12
10
y
0
0 20 40 60 80 100 120 140
x
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-33
A = [7,14,-6;12,-5,9;-5,7,15];
b = [95;-50;145];
x = A\b
The answers are −3, 10, and 4, which correspond to x = −3, y = 10, and z = 4. Typing
A*x gives the result 95, -50, 145, which are the right-hand sides of the equations. Thus the
values of x, y, and z are correct.
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-34
−a + b − c + d = 8
d=4
a + b + c + d = 10
8a + 4b + 2c + d = 68
The session is:
A = [-1,1,-1,1;0,0,0,1;1,1,1,1;8,4,2,1];
b = [8;4;10;68];
x = A\b
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-35
The answers for x are −3, 10, 4, which correspond to x = −3, y = 10, and z = 4. Typing
A*x gives the result 95, −50, 145, which are the right-hand sides of the equations. Thus the
values of x, y, and z are correct.
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-36
D2 W2
A = WL + = WL +
2 4
which can be solved for L:
A − W 2 /4
L=
W
The perimeter is given by
s
2 2
W W W
P = 2L + W + 2 + = 2L + W + 2 √
2 2 2
The script file is:
W = 6;A = 80;
L = (A - W^2/4)/W
P = 2*L + W + 2*W/sqrt(2)
The answers are L = 11.8333 meters and the total length is the perimeter P = 38.1519
meters.
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-37
The two roots are c2 = −228 and c2 = 171. Taking the positive root gives c2 = 171 meters.
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-38
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-39
1.2
0.8
d (feet)
0.6
0.4
0.2
0
0 20 40 60 80 100 120 140 160 180
A (degrees)
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-40
1.8
1.6
d (feet)
1.4
1.2
0.8
0 20 40 60 80 100 120 140 160 180
A (degrees)
c 2010 McGraw-Hill. This work is only for non-profit use by instructors in courses for which
the textbook has been adopted. Any other use without publisher’s consent is unlawful.
1-41