frac - Maple Help

Online Help

All Products    Maple    MapleSim


MTM

  

frac

  

fractional part

 

Calling Sequence

Parameters

Description

Examples

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

withMTM:

MMatrix2,3,fill=3.6:

fracM

−0.6−0.6−0.6−0.6−0.6−0.6

(1)

See Also

frac

MTM[ceil]

MTM[fix]

MTM[floor]

MTM[round]