procbody
create a ``neutralized form'' of a procedure
Calling Sequence
Parameters
Description
Examples
procbody(procedure)
procedure
-
any Maple procedure
Important: The procbody function has been deprecated. Use the superseding functions ToInert and FromInert instead to translate between Maple expressions and the corresponding inert forms.
This routine creates a ``neutralized form'' of a Maple procedure. This ``neutralized form'' can be examined, or modified in ways the original procedure cannot be. This routine is probably more useful in writing other routines to manipulate procedures than for interactive use. The function procmake creates a procedure from a ``neutralized form''.
The neutralized form replaces statements, local variables, parameters, and some functions with ``neutral'' equivalents. These neutral forms are described in the help file for procmake.
Do not evaluate the ``neutral form'' since this will almost certainly corrupt it due to such expressions as Digits being changed into 10 .
a := proc(x) if x<0 then -x^2 else x^2 end if end proc:
procbody⁡a
&proc⁡&expseq⁡x,&expseq⁡,&expseq⁡,&expseq⁡,&if⁡&args1<0,−&args12,&args12,&expseq⁡,&expseq⁡,&expseq⁡,&binary⁡1
b := proc(x) local a; for a in x do print(a) end do; a; end proc:
procbody⁡b
&proc⁡&expseq⁡x,&expseq⁡a,&expseq⁡,&expseq⁡,&for⁡&local1,&args1,true,print&function&expseq⁡&local1,false&statseq&local1,&expseq⁡,&expseq⁡,&expseq⁡,&binary⁡1
See Also
FromInert
procmake(deprecated)
ToInert
Download Help Document