Programming in Maple
Roger Kraft Department of Mathematics, Computer Science, and Statistics Purdue University Calumet
roger@calumet.purdue.edu
4.6. Maple functions are procedures
A function in Maple is really like a procedure. Below we define a procedure, a Maple function, and an expression, each of them equivalent to the mathematical function .
Let us see how Maple remembers the definitions of f1 , f2 , and f3 .
Check the data types of f1 , f2 , and f3 .
Notice that Maple considers both f2 and f3 to be of type procedure , so Maple treats functions as procedures.