simplify - Maple Help

MTM

 simplify
 apply simplification rules

 Calling Sequence simplify(A)

Parameters

 A - expression or array of expressions

Description

 • For an expression A, the function simplify(A) will apply simplification rules to A, and return the resulting expression.
 • For an array A, the function simplify(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 simplify(e).

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $A≔{4}^{\frac{1}{2}}+3$
 ${A}{≔}\sqrt{{4}}{+}{3}$ (1)
 > $\mathrm{simplify}\left(A\right)$
 ${5}$ (2)
 > $B≔\mathrm{exp}\left(a+\mathrm{ln}\left(b\mathrm{exp}\left(c\right)\right)\right)$
 ${B}{≔}{{ⅇ}}^{{a}{+}{\mathrm{ln}}{}\left({b}{}{{ⅇ}}^{{c}}\right)}$ (3)
 > $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}}$ (4)
 > $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)$ (5)
 > $\mathrm{simplify}\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]$ (6)