procmake - create a Maple procedure
|
Calling Sequence
|
|
procmake(neutralform)
|
|
Parameters
|
|
neutralform
|
-
|
``neutral form'' of a procedure
|
|
|
|
|
Description
|
|
•
|
Important: The procmake function has been deprecated. Use the superseding functions ToInert and FromInert instead to translate between Maple expressions and the corresponding inert forms.
|
•
|
This routine takes the ``neutral form'' of a procedure (such as that generated by procbody) and creates an executable procedure.
|
•
|
The short specific neutral form is:
|
|
The expression `&proc`(A, B, C, D) is a procedure, where:
|
A is a list of arguments
|
B is a list of local variables
|
C is a list of options
|
D is the statement sequence
|
|
|
•
|
The long specific neutral form is:
|
|
The expression `&proc`(P, L, O, R, B, S, G, X) is a procedure, where:
|
P is an `&expseq` of parameters
|
L is an `&expseq` of locals
|
O is an `&expseq` of options
|
R is the remember table `&hashtab`
|
B is the body `&statseq`
|
S is the description string
|
G is an `&expseq` of globals
|
X is the (empty) `&expseq` of scoped
|
|
variables
|
|
|
•
|
The expression is a statement sequence, where A, B, and C are statements.
|
•
|
The expression is an expression sequence, where A, B, and C are expressions.
|
•
|
The empty expression sequence (NULL) is represented by .
|
•
|
The expression is an assignment statement, where A is assigned the value of B.
|
•
|
The expression is a for-from statement, where:
|
VAR is the variable
|
INIT is the initial value
|
INCR is the increment
|
FIN is the final value
|
COND is the looping condition
|
STAT is the statement sequence
|
|
|
•
|
The expression is a for-in statement, where:
|
VAR is the variable
|
EXPR is the expression
|
COND is the looping condition
|
STAT is the statement sequence
|
|
|
•
|
The functions and represent ERROR() and RETURN() or use the above general function call syntax.
|
•
|
A series is represented by the function.
|
•
|
A table is represented by the function.
|
|
|
Examples
|
|
Important: The procmake function has been deprecated. Use the superseding functions ToInert and FromInert instead to translate between Maple expressions and the corresponding inert forms.
>
|
|
>
|
|
| (1) |
|
|