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

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

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

The results will be saved to the calling Matrix. X must be a real. 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!