You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > Rem Method > Matrix.Rem Method (TMtxVec, double, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.Rem Method (TMtxVec, double, integer, integer, integer)

Calculates reminder after division X/Y according to formula: z[i] = X[xi]-y*Trunc(X[xi]/y), where i in [Index..Index+Len], xi in [XIndex..XIndex+Len].

Pascal
function Rem(const X: TMtxVec; Y: double; XIndex: integer; Index: integer; Len: integer): TMtxVec; overload;

X must be a real. The results will be saved to the calling Matrix. An exception will be raised if ConditionCheck is True and array borders are overrun.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!