{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 "2D Math" -1 2 "Times" 0 1 0 0 0 0 0 0 2 0 0 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 "2D Output" 2 20 "" 0 1 0 0 255 1 0 0 0 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 Head ing" -1 26 "" 1 14 0 0 0 0 0 1 0 0 0 0 0 0 0 1 }{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "Text Output" -1 2 1 {CSTYLE "" -1 -1 "Couri er" 1 10 0 0 255 1 0 0 0 0 0 1 3 0 0 1 }1 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 }1 0 0 0 6 6 0 0 0 0 0 0 -1 0 }{PSTYLE "Warning" 2 7 1 {CSTYLE "" -1 -1 "" 0 1 0 0 255 1 0 0 0 0 0 0 1 0 0 1 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "Error" 7 8 1 {CSTYLE "" -1 -1 "" 0 1 255 0 255 1 0 0 0 0 0 0 0 0 0 1 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "D iagnostic" 7 9 1 {CSTYLE "" -1 -1 "" 0 1 64 128 64 1 0 0 0 0 0 0 0 0 0 1 }0 0 0 -1 -1 -1 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 1 }3 3 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }} {SECT 0 {SECT 0 {PARA 0 "" 0 "" {TEXT 26 6 "Error:" }{TEXT -1 86 " wr ong number (or type) of arguments\n expecting ... argum ents, got ..." }}{PARA 0 "" 0 "" {TEXT -1 16 " " }} {PARA 0 "" 0 "" {TEXT -1 175 "Many of Maple's commands and functions a re very particular about the number, types and order of the arguments \+ they are given, and will cause an error if these are not correct." }} {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 194 "Look at \+ the help for a function, in particular the \"calling sequence\" and \" parameters\" sections, to see the correct forms to use. Or imitate on e of the examples that are given on the help page." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 9 "Use the " }{MPLTEXT 0 21 9 "tracelast" }{TEXT -1 188 " command to see more about the error. In particular it will show what functions were being called with what ar guments when the error occurred. In some cases it may be helpful to u se the " }{MPLTEXT 0 21 4 "type" }{TEXT -1 4 " or " }{MPLTEXT 0 21 8 " whattype" }{TEXT -1 47 " command to check on the type of some argument ." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 313 "One common way that these errors can occur is when you try to use a name \+ as a symbolic variable, but it turns out that the name has been assign ed a value. This is the case in the second example below. If so, eit her use a different name that does not have a value or unassign the va lue if it is no longer needed." }}}{SECT 0 {PARA 3 "" 0 "" {TEXT 26 9 "Examples:" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 9 "sin(x,y);" }} {PARA 8 "" 1 "" {TEXT -1 44 "Error, (in sin) expecting 1 argument, got 2\n" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 10 "tracelast;" }} {PARA 9 "" 1 "" {TEXT -1 87 " sin called with arguments: x, y\n #(sin, 2): error \"expecting 1 argument, got %1\", nargs" }}{PARA 8 "" 1 "" {TEXT -1 44 "Error, (in sin) expecting 1 argument, got 2\n" }}{PARA 9 "" 1 "" {TEXT -1 72 " locals defined as: n = n, t = t, pull_out = pull _out, keep_in = keep_in" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 6 "t := 2:" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 12 "diff(t^2,t);" }} {PARA 8 "" 1 "" {TEXT -1 61 "Error, wrong number (or type) of paramete rs in function diff\n" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 12 "wh attype(t);" }}{PARA 11 "" 1 "" {XPPMATH 20 "6#%(integerG" }}}}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 9 "See also:" }{TEXT -1 1 " " }{HYPERLNK 17 " tracelast" 2 "tracelast" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "whattype" 2 "whattype" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "type" 2 "type" "" } {TEXT -1 1 " " }}}{PARA 0 "" 0 "" {TEXT 26 22 "Maple Advisor Database " }{TEXT -1 18 " R. Israel, 1997" }}}{MARK "2 0 0" 0 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 }