MapleTA[Builtin] - Maple Help

Home : Support : Online Help : Education : MapleTA Package : Builtin : MapleTA/Builtin/maple

MapleTA[Builtin]

 maple
 parse and execute a Maple command

 Calling Sequence maple(command)

Parameters

 command - string

Description

 • The maple command parses and executes the given command string.
 • If the given command string contains multiple maple statement, only the result of the last statement will be returned.
 • The maple command interacts with the global environment.  So, if x is assigned in your current session, then executing maple("f(x)") will compute a result using the current setting of x.  This is not a concern when running code inside Maple T.A., as each maple computation starts with a clean environment with nothing assigned.

Examples

 > $\mathrm{MapleTA}:-\mathrm{Builtin}:-\mathrm{maple}\left("ithprime\left(12\right)"\right)$
 ${37}$ (1)
 > $\mathrm{MapleTA}:-\mathrm{Builtin}:-\mathrm{maple}\left("diff\left(sin\left(x\right)*x,x\right)"\right)$
 ${\mathrm{cos}}{}\left({x}\right){}{x}{+}{\mathrm{sin}}{}\left({x}\right)$ (2)
 > $\mathrm{MapleTA}:-\mathrm{Builtin}:-\mathrm{maple}\left("a := 2; print\left(a\right); a^2"\right)$
 ${2}$
 ${4}$ (3)

Compatibility

 • The MapleTA[Builtin][maple] command was introduced in Maple 18.