{VERSION 3 0 "SUN SPARC SOLARIS" "3.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 }{CSTYLE "2D Math" -1 2 "Times" 0 1 0 0 0 0 0 0 2 0 0 0 0 0 0 }{CSTYLE "2D Comment" 2 18 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 } {CSTYLE "" -1 256 "" 0 1 0 0 0 0 0 1 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 -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 }1 0 0 0 8 4 0 0 0 0 0 0 -1 0 }} {SECT 0 {PARA 3 "" 0 "" {TEXT -1 12 "Substitution" }{TEXT -1 0 "" }} {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 85 "You will \+ occasionally want to substitute a value or expression for a variable i n some" }}{PARA 0 "" 0 "" {TEXT -1 65 "expression, equation, or functi on. You do this with the command " }{TEXT 256 5 "subs." }{TEXT -1 15 " The syntax is" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 15 "subs(x=a ,expr);" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 27 "For example, to substitute " }{XPPEDIT 18 0 "x = 23;" "6#/%\"xG\"# B" }{TEXT -1 6 " into " }{XPPEDIT 18 0 "x^3+2*x^2-6*x+9;" "6#,**$)%\"x G\"\"$\"\"\"F(*&\"\"#F(*$)F&\"\"#F(F(F(*&\"\"'F(F&F(!\"\"\"\"*F(" } {TEXT -1 19 ", give the command " }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 28 "subs(x=23, x^3+2*x^2-6*x+9);" }}}{PARA 0 "" 0 "" {TEXT -1 79 " You can substitute for more than one variable. For example, for two v ariables," }}{PARA 0 "" 0 "" {TEXT -1 14 "the syntax is " }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 21 "subs(\{x=a,y=b\},expr);" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 27 "For example, to substitute " }{XPPEDIT 18 0 "x = 23;" "6#/%\"xG\"#B" }{TEXT -1 2 ", \+ " }{XPPEDIT 18 0 "y = -39;" "6#/%\"yG,$\"#R!\"\"" }{TEXT -1 6 " into \+ " }{XPPEDIT 18 0 "x^3*y^7;" "6#*&)%\"xG\"\"$\"\"\")%\"yG\"\"(F'" } {TEXT -1 0 "" }{TEXT -1 18 ", give the command" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 27 "subs(\{x=23, y=-39\},x^3*y^7);" }}}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 18 "If you substitute " }{TEXT -1 4 "for " }{XPPEDIT 18 0 "x; " "6#%\"xG" }{TEXT -1 55 " and not y in this example, you will get a f unction of " }{XPPEDIT 18 0 "y;" "6#%\"yG" }{TEXT -1 1 "." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 19 "subs(x=23,x^3*y^7);" }}}{PARA 0 "" 0 "" {TEXT -1 49 "You can also substitute into several expressions." } {TEXT -1 48 " The syntax if there is one variable and there " }} {PARA 0 "" 0 "" {TEXT -1 22 "are two expressions is" }{TEXT -1 0 "" }} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "subs(x=a,\{expr1,expr2\});" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 33 "subs(x=23,\{x^3+2*x^2-6*x +9,2^x\});" }}}{PARA 0 "" 0 "" {TEXT -1 69 "The result is a pair of va lues if you substituted in two expressions." }}{EXCHG {PARA 0 "> " 0 " " {MPLTEXT 1 0 0 "" }}}}{MARK "24" 0 }{VIEWOPTS 1 1 0 1 1 1803 }