procread - Install Maple® procedure

Syntax

procread('filename')

Description

procread('filename') reads the specified file, which should contain the source text for a Maple procedure. It deletes any comments and newline characters, then sends the resulting string to Maple software.

Extended Symbolic Math Toolbox™ software is required.

Examples

Suppose the file ident.src contains the following source text for a Maple procedure.

ident := proc(A)
#  ident(A) computes A*inverse(A)
   local X;
   X := inverse(A);
   evalm(A &* X);
end;

Then the statement

procread('ident.src') 

installs the procedure. It can be accessed with

maple('ident',magic(3))

or

maple('ident',vpa(magic(3)))

See Also

maple

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS