{VERSION 5 0 "IBM INTEL NT" "5.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 1 }{CSTYLE "2D Math" -1 2 "Times" 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 1 }{CSTYLE "2D Comment" 2 18 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 } {CSTYLE "2D Output" 2 20 "" 0 1 0 0 255 1 0 0 0 0 0 0 0 0 0 1 } {CSTYLE "" -1 256 "" 1 24 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 257 "" 1 24 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 258 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 259 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 260 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 } {CSTYLE "" -1 261 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 262 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 263 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 264 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 265 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 } {CSTYLE "" -1 266 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 267 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 268 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 269 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 270 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 } {CSTYLE "" -1 271 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 272 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 273 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 274 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{CSTYLE "" -1 275 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 } {CSTYLE "" -1 276 "" 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }{PSTYLE "Normal " -1 0 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "Heading 1" 0 3 1 {CSTYLE "" -1 -1 "" 1 18 0 0 0 0 0 1 0 0 0 0 0 0 0 0 }1 0 0 0 8 4 0 0 0 0 0 0 -1 0 } {PSTYLE "Maple Output" 0 11 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }3 3 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "Maple Plot" 0 13 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }3 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "" 0 256 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }3 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }} {SECT 0 {EXCHG {PARA 256 "" 0 "" {TEXT 256 0 "" }{TEXT 257 21 "Numeric al Integration" }}{PARA 0 "" 0 "" {TEXT -1 213 "Here we try to evaluat e definite integrals using numerical methods. This is particularly us eful when we can find no antiderivative of the integrand and therefore cannot apply the fundemental theorem of calculus. " }}{PARA 0 "" 0 " " {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 502 "The following sections contain several Maple commands in a row. To execute all of the comman d in a \"cell\" just hit \"enter\" on any line in the cell. Maple wil l then execute all of the commands in sequence starting from the first one in the cell. To create a cell with several commands you must hit \"shift\" and \"enter\" at the same time. This goes to the next lin e but does not execute the command. When Maple executes the commands \+ in sequence, it prints the results from every command ending with a " }{TEXT 258 10 "semi-colon" }{TEXT -1 60 " but does not print the resul ts from commands ending with a " }{TEXT 259 7 "colon. " }{TEXT -1 12 " Finally the " }{TEXT 261 1 "#" }{TEXT -1 105 " symbol, and everything \+ after it, is ignored by Maple. I use this to make comments about some commands. " }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 58 "For the first 3 examples that follow, we are integrating " } {XPPEDIT 18 0 "f(x) = sqrt(1-x^2);" "6#/-%\"fG6#%\"xG-%%sqrtG6#,&\"\" \"F,*$F'\"\"#!\"\"" }{TEXT -1 128 " from x=0 to x=1. From geometry w e know that this is one quarter the area of a circle with radius 1. I e. The exact answer is " }{XPPEDIT 18 0 "Pi/4;" "6#*&%#PiG\"\"\"\"\"%! \"\"" }{TEXT -1 50 ". In a sense, we are approximating the value of \+ " }{XPPEDIT 18 0 "Pi;" "6#%#PiG" }{TEXT -1 2 ". " }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT 260 1 " " }{TEXT -1 3 " " }}} {SECT 1 {PARA 3 "" 0 "" {TEXT -1 39 " Left and Right Endpoint Approxim ations" }}{PARA 0 "" 0 "" {TEXT -1 65 "The following sequence of comma nds generates an approximation to " }{XPPEDIT 18 0 "int(f(x),x = a .. \+ b);" "6#-%$intG6$-%\"fG6#%\"xG/F);%\"aG%\"bG" }{TEXT -1 48 " using lef t and right endpoint approximations. " }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 8 "restart:" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 84 "with(student): #This loads the \"student\" library containing \"leftb ox\" and \"rightbox\"" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "f \+ := x -> sqrt(1 - x^2);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#>%\"fGf*6#% \"xG6\"6$%)operatorG%&arrowGF(-%%sqrtG6#,&\"\"\"F0*$)9$\"\"#F0!\"\"F(F (F(" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 430 "a := 0: # the left limit of integration\nb := 1: # the right limit of integration\nn := 20: # the number of subintervals\ndeltax := (b-a)/n: # the interval \+ width\nxk := k -> a + k*deltax: #this functions finds the k'th x valu e\nyk := k -> f(xk(k)): # this function finds the k'th y value\nleftb ox(f(x),x=a..b,n); #this is a special plotting function\nLeftApprox : = evalf(deltax * sum(yk(k),k=0..n-1)); #left endpoint approximation\n " }{TEXT -1 0 "" }{MPLTEXT 1 0 76 "MapleArea := evalf(int(f(x),x=a..b) ); #Exact Answer as determined by Maple\n" }{TEXT -1 0 "" }{MPLTEXT 1 0 395 "LeftError := MapleArea - LeftApprox; #The error using the l eft endpoint approximation\nrightbox(f(x),x=a..b,n); #this is a specia l plotting function \nRightApprox := evalf(deltax * sum(yk(k),k=1..n)) ; #right endpoint approximation\nMapleArea := evalf(int(f(x),x=a..b)); #Exact Answer as determined by Maple\nRightError := MapleArea - Righ tApprox; #The error using the right endpoint approximation" }}{PARA 13 "" 1 "" {GLPLOT2D 400 300 300 {PLOTDATA 2 "69-%'CURVESG6&7Y7$$\"\"! F)$\"\"\"F)7$$\"3emmm;arz@!#>$\"3e(=:\"QTi(***!#=7$$\"3[LL$e9ui2%F/$\" 3!e2E0a)o\"***F27$$\"3nmmm\"z_\"4iF/$\"3)f\\s^f/2)**F27$$\"3[mmmT&phN) F/$\"3)37fk0E]'**F27$$\"3CLLe*=)H\\5F2$\"3R\\N+$H'zW**F27$$\"3gmm\"z/3 uC\"F2$\"3^l4$yi$*=#**F27$$\"3%)***\\7LRDX\"F2$\"3%p#zm\"3WR*)*F27$$\" 3]mm\"zR'ok;F2$\"3iaa\"Q\\n/')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