frac - Maple Help

MTM

 frac
 fractional part

 Calling Sequence frac(M) frac(x)

Parameters

 M - array x - expression

Description

 • frac(x) is the fractional part of x, that is, frac(x) = x - fix(x).
 • The frac(M) function computes the element-wise fractional part of M.  The result, R, is formed as R[i,j] = frac(M[i,j]).

Examples

 > $\mathrm{with}\left(\mathrm{MTM}\right):$
 > $M≔\mathrm{Matrix}\left(2,3,'\mathrm{fill}'=-3.6\right):$
 > $\mathrm{frac}\left(M\right)$
 $\left[\begin{array}{ccc}{-0.6}& {-0.6}& {-0.6}\\ {-0.6}& {-0.6}& {-0.6}\end{array}\right]$ (1)