numden - Maple Help

MTM

 numden
 numerator/denominator

 Calling Sequence numden(M) numer, denom := numden(M)

Parameters

 M - array or expression

Description

 • The numer := numden(M) calling sequence computes the numerator of the expression M.
 • The (numer,denom) := numden(M) calling sequence computes both the numerator of M, which is stored in the variable numer, and the denominator of M, which is stored in the variable denom.
 • The numden(M) function computes element-wise numerator and denominator of M.  The results, R1 and R2, are formed as R1[i,j] = numer(M[i,j]) and R2[i,j] = denom(M[i,j]).

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $M≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=\frac{x}{y}+\frac{y}{x}\right):$
 > $\mathrm{numden}\left(M\right)$
 $\left[\begin{array}{ccc}{{x}}^{{2}}{+}{{y}}^{{2}}& {{x}}^{{2}}{+}{{y}}^{{2}}& {{x}}^{{2}}{+}{{y}}^{{2}}\\ {{x}}^{{2}}{+}{{y}}^{{2}}& {{x}}^{{2}}{+}{{y}}^{{2}}& {{x}}^{{2}}{+}{{y}}^{{2}}\end{array}\right]{,}\left[\begin{array}{ccc}{y}{}{x}& {y}{}{x}& {y}{}{x}\\ {y}{}{x}& {y}{}{x}& {y}{}{x}\end{array}\right]$ (1)