29.06.2016 Views

Thomas Calculus 13th [Solutions]

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

368 Chapter 5 Integration<br />

95-102. Example CAS commands:<br />

Maple:<br />

with( Student[<strong>Calculus</strong>1] );<br />

f : x - sin(x);<br />

a : 0;<br />

b : Pi;<br />

plot( f(x), x a..b, title "#95(a) (Section 5.3)" );<br />

N : [ 100, 200,1000 ];<br />

for n in N do<br />

Xlist : [ a 1.*(b-a)/n*i $ i 0..n ];<br />

Ylist : map( f, Xlist );<br />

end do:<br />

for n in N do<br />

Avg[n] : evalf(add(y,y Ylist)/nops(Ylist));<br />

end do;<br />

avg : FunctionAverage( f(x), x a..b, output value );<br />

evalf( avg );<br />

FunctionAverage(f(x),x a..b, output plot);<br />

fsolve( f(x) avg, x 0.5 );<br />

fsolve( f(x) avg, x 2.5 );<br />

fsolve( f(x) Avg[1000], x 0.5 );<br />

fsolve( f(x) Avg[1000], x 2.5 );<br />

# (b)<br />

# (c)<br />

# (d)<br />

89-102. Example CAS commands:<br />

Mathematica: (assigned function and values for a, b, and n may vary)<br />

Sums of rectangles evaluated at left-hand endpoints can be represented and evaluated by this set of commands<br />

Clear[x, f, a, b, n]<br />

{a, b} {0, }; n 10; dx (b a)/n;<br />

2<br />

f Sin[x] ;<br />

xvals Table[N[x],{x, a, b dx, dx}];<br />

yvals f /.x xvals;<br />

boxes MapThread[Line[ {{# 1, 0},{ # 1, # 3},{ # 2, # 3},{ # 2, 0}] &,{xvals, xvals dx, yvals}];<br />

Plot[f, {x, a, b}, Epilog boxes];<br />

Sum[yvals[[i]] dx, {i, 1, Length[yvals]}]//N<br />

Sums of rectangles evaluated at right-hand endpoints can be represented and evaluated by this set of<br />

commands.<br />

Clear[x, f, a, b, n]<br />

{a, b} {0, }; n 10; dx (b a)/n;<br />

2<br />

f Sin[x] ;<br />

xvals Table[N[x], {x, a dx, b, dx}];<br />

yvals f /.x xvals;<br />

boxes MapThread[Line[ {{# 1, 0},{ # 1, # 3},{ # 2, # 3},{ # 2, 0}] &,{xvals, dx,xvals, yvals}];<br />

Plot[f, {x, a, b}, Epilog boxes];<br />

Sum[yvals[[i]] dx, {i, 1, Length[yvals]}]//N<br />

Copyright<br />

2014 Pearson Education, Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!