simple - Maple Help

MTM

 simple
 apply simplification rules

 Calling Sequence simple(A) e, h := simple(A)

Parameters

 A - expression, array of expressions e - variable h - variable

Description

 • For an expression A, the function simple(A) will apply simplification rules to A, and return the resulting expression.
 • For an array A, the function simple(A) will return an array R with the same dimensions as A. For each element e of A, the corresponding element in R will have the value simple(e).
 • If the call is assigned to two variables, e and h, then e is assigned the simplified expression or array of expressions, and h is assigned a string representing the simplification method used.  Currently, simplify is the only simplification method used.

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $A≔{4}^{\frac{1}{2}}+3$
 ${A}{≔}\sqrt{{4}}{+}{3}$ (1)
 > $\mathrm{simple}\left(A\right)$
 ${5}$ (2)
 > $e,h≔\mathrm{simple}\left(A\right)$
 ${e}{,}{h}{≔}{5}{,}{"simplify"}$ (3)
 > $B≔\mathrm{exp}\left(a+\mathrm{ln}\left(b\mathrm{exp}\left(c\right)\right)\right)$
 ${B}{≔}{{ⅇ}}^{{a}{+}{\mathrm{ln}}{}\left({b}{}{{ⅇ}}^{{c}}\right)}$ (4)
 > $C≔{\mathrm{sin}\left(x\right)}^{2}+\mathrm{ln}\left(2x\right)+{\mathrm{cos}\left(x\right)}^{2}$
 ${C}{≔}{{\mathrm{sin}}{}\left({x}\right)}^{{2}}{+}{\mathrm{ln}}{}\left({2}{}{x}\right){+}{{\mathrm{cos}}{}\left({x}\right)}^{{2}}$ (5)
 > $E≔{\mathrm{cos}\left(x\right)}^{5}+{\mathrm{sin}\left(x\right)}^{4}+2{\mathrm{cos}\left(x\right)}^{2}-2{\mathrm{sin}\left(x\right)}^{2}-\mathrm{cos}\left(2x\right)$
 ${E}{≔}{{\mathrm{cos}}{}\left({x}\right)}^{{5}}{+}{{\mathrm{sin}}{}\left({x}\right)}^{{4}}{+}{2}{}{{\mathrm{cos}}{}\left({x}\right)}^{{2}}{-}{2}{}{{\mathrm{sin}}{}\left({x}\right)}^{{2}}{-}{\mathrm{cos}}{}\left({2}{}{x}\right)$ (6)
 > $\mathrm{simple}\left(\mathrm{Array}\left(\left[\left[A,B\right],\left[C,E\right]\right]\right)\right)$
 $\left[\begin{array}{cc}{5}& {b}{}{{ⅇ}}^{{c}{+}{a}}\\ {\mathrm{ln}}{}\left({2}\right){+}{\mathrm{ln}}{}\left({x}\right){+}{1}& {{\mathrm{cos}}{}\left({x}\right)}^{{4}}{}\left({\mathrm{cos}}{}\left({x}\right){+}{1}\right)\end{array}\right]$ (7)