MTM - Maple Help

MTM

 Calling Sequence MTM[command](arguments) command(arguments)

Description

 • The MTM package is a collection of Maple commands to support the Maple Toolbox.
 • The commands in the MTM package are useful by themselves inside Maple without MATLAB®. Some of the commands are relatively simple front ends to the standard Maple commands. For instance, MTM[sin] is the same as sin, except that MTM[sin](A) will map over the elements of A when A is an array.   Other commands, such as MTM[vertcat], offer new functionality: vertcat provides an easy way to combine arrays.
 • All commands in this package work with table-based sparse arrays as well as rtable-based dense Arrays in addition to scalar values and symbolic expressions.
 • Boolean-valued functions in this package typically operate with 1 and 0 as the true/false values.

List of MTM Package Commands

 • The following is a list of commands available in the MTM package:

Notes

 • Since the MTM package uses names that are the same as many top-level Maple commands, users should be careful after executing with(MTM). Some commands inside MTM behave differently or accept a different calling sequence than the top-level commands of the same name.

Examples

 > $A≔\mathrm{Array}\left(\left[1,2,3\right]\right)$
 ${A}{:=}\left[\begin{array}{ccc}{1}& {2}& {3}\end{array}\right]$ (1)
 > $B≔\mathrm{Array}\left(\left[4,5,6\right]\right)$
 ${B}{:=}\left[\begin{array}{ccc}{4}& {5}& {6}\end{array}\right]$ (2)
 > $C≔\mathrm{MTM}[\mathrm{vertcat}]\left(A,B\right)$
 ${C}{:=}\left[\begin{array}{rrr}{1}& {2}& {3}\\ {4}& {5}& {6}\end{array}\right]$ (3)
 > $\mathrm{r1}≔\mathrm{MTM}[\mathrm{sin}]\left(C\right)$
 ${\mathrm{r1}}{:=}\left[\begin{array}{ccc}{\mathrm{sin}}{}\left({1}\right)& {\mathrm{sin}}{}\left({2}\right)& {\mathrm{sin}}{}\left({3}\right)\\ {\mathrm{sin}}{}\left({4}\right)& {\mathrm{sin}}{}\left({5}\right)& {\mathrm{sin}}{}\left({6}\right)\end{array}\right]$ (4)
 > $\mathrm{r2}≔\mathrm{MTM}[\mathrm{cos}]\left(\mathrm{MTM}[\mathrm{plus}]\left(C,\frac{3\mathrm{π}}{2}\right)\right)$
 ${\mathrm{r2}}{:=}\left[\begin{array}{ccc}{\mathrm{sin}}{}\left({1}\right)& {\mathrm{sin}}{}\left({2}\right)& {\mathrm{sin}}{}\left({3}\right)\\ {\mathrm{sin}}{}\left({4}\right)& {\mathrm{sin}}{}\left({5}\right)& {\mathrm{sin}}{}\left({6}\right)\end{array}\right]$ (5)
 > $\mathrm{MTM}[\mathrm{eq}]\left(\mathrm{r1},\mathrm{r2}\right)$
 $\left[\begin{array}{rrr}{1}& {1}& {1}\\ {1}& {1}& {1}\end{array}\right]$ (6)
 > $\mathrm{MTM}[\mathrm{double}]\left(\mathrm{r1}\right)$
 $\left[\begin{array}{ccc}{0.841470984807897}& {0.909297426825682}& {0.141120008059867}\\ {-}{0.756802495307928}& {-}{0.958924274663138}& {-}{0.279415498198926}\end{array}\right]$ (7)