{VERSION 4 0 "IBM INTEL NT" "4.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 "Hyperlink" -1 17 "" 0 1 0 128 128 1 0 0 1 0 0 0 0 0 0 1 }{CSTYLE "" 0 21 "" 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 1 }{CSTYLE " Help Heading" -1 26 "" 1 14 0 0 0 0 0 1 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 256 "Times" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 }{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Text Output" -1 2 1 {CSTYLE "" -1 -1 "Co urier" 1 10 0 0 255 1 2 2 2 2 2 1 3 1 3 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Error" -1 8 1 {CSTYLE "" -1 -1 "Courier" 1 10 255 0 255 1 2 2 2 2 2 1 1 1 3 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }} {SECT 0 {SECT 0 {PARA 0 "" 0 "" {TEXT 26 7 "Error: " }{TEXT -1 43 "rem ember tables are not supported in evalhf" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 140 "The remember table of a function \+ provides a way to store specific values of the function for later use. Thus e.g. after defining a function" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 23 "f:= proc(x) x^2+1 end:" }}}{PARA 0 "" 0 "" {TEXT -1 101 "you can enter a value into the remember table by an assignment wi th a function call on the left side:" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 9 "f(1):= 4:" }}}{PARA 0 "" 0 "" {TEXT -1 71 "Another way to produce a remember table is to define the function with " } {MPLTEXT 0 21 15 "option remember" }{TEXT -1 97 ". This will automati cally enter values in the remember table each time the function is exe cuted." }}{PARA 0 "" 0 "" {TEXT -1 230 "Whenever the function is calle d, the remember table is searched for the values of the parameters. I f an entry with these parameters is found, the body of the function is not executed, but the remembered value is returned instead." }} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 5 "f(1);" }}{PARA 2 "" 1 "" {TEXT -1 37 " 4" }}}{PARA 0 "" 0 " " {TEXT -1 71 "However, this mechanism does not work if the function i s called in the " }{MPLTEXT 0 21 6 "evalhf" }{TEXT -1 165 " environmen t, and any attempt to call a function (other than one of the built-in \+ ones that are handled directly) that has a remember table will result \+ in this error." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 13 "evalhf(f(2 ));" }}{PARA 8 "" 1 "" {TEXT -1 51 "Error, remember tables are not sup ported in evalhf\n" }}}{PARA 0 "" 0 "" {TEXT -1 36 "The Maple Advisor \+ Database function " }{MPLTEXT 0 21 11 "disremember" }{TEXT -1 121 " (i n its two-parameter form) can be used to produce a version of a functi on with an empty remember table, and remove the " }{MPLTEXT 0 21 15 "o ption remember" }{TEXT -1 24 " if present. Note that " }{MPLTEXT 0 21 6 "forget" }{TEXT -1 67 " also deletes a remember table, but acts o n the original function; " }{MPLTEXT 0 21 11 "disremember" }{TEXT -1 73 " returns a modified copy of the function, leaving the original unc hanged." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 25 "fh:= disremember( f,true);" }}{PARA 2 "" 1 "" {TEXT -1 51 " fh := pr oc(x) x^2 + 1 end proc" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 14 "e valhf(fh(1));" }}{PARA 2 "" 1 "" {TEXT -1 37 " \+ 2." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 5 "f(1);" }} {PARA 2 "" 1 "" {TEXT -1 37 " 4" }} }{PARA 0 "" 0 "" {TEXT -1 0 "" }}}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 9 " See also:" }{TEXT -1 1 " " }{TEXT -1 1 " " }{HYPERLNK 17 "disremember " 2 "disremember" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "evalhf" 2 "evalhf " "" }{TEXT -1 2 ", " }{HYPERLNK 17 "evalhf[function]" 2 "evalhf/funct ion" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "forget" 2 "forget" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "procedure" 2 "procedure" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "remember" 2 "remember" "" }}}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 22 "Maple Advisor Database" }{TEXT 256 18 " R. Israel, 2000 " }}}}{MARK "0 5 0 0" 9 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 } {PAGENUMBERS 0 1 2 33 1 1 }