procbody - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Libraries and Packages : Deprecated Packages and Commands : Deprecated commands : procbody(deprecated)

procbody

create a ``neutralized form'' of a procedure

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

procbody(procedure)

Parameters

procedure

-

any Maple procedure

Description

• 

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 .

Examples

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.

a := proc(x) if x<0 then -x^2 else x^2 end if end proc:

procbodya

&proc&expseqx&comma;&expseq&comma;&expseq&comma;&expseq&comma;&if&args1<0&comma;&args12&comma;&args12&comma;&expseq&comma;&expseq&comma;&expseq&comma;&binary1

(1)

b := proc(x) local a; for a in x do print(a) end do; a; end proc:

procbodyb

&proc&expseqx&comma;&expseqa&comma;&expseq&comma;&expseq&comma;&for&local1&comma;&args1&comma;true&comma;print &function &expseq&local1 &statseq &local1&comma;&expseq&comma;&expseq&comma;&expseq&comma;&binary1

(2)

See Also

FromInert

procmake(deprecated)

ToInert

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam