fix - Maple Help

MTM

 fix
 integer part

 Calling Sequence fix(M)

Parameters

 M - array

Description

 • For x >= 0, fix(x) is the greatest integer less than or equal to x. For x < 0, fix(x) = -fix(-x).
 • The fix(M) function computes the element-wise integer part of M.  The result, R, is formed as R[i,j] = fix(M[i,j]).

Examples

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