This repository was archived by the owner on May 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
mod
Florian Rappl edited this page Dec 21, 2014
·
2 revisions
Calculates the modulo of the integer real parts of the arguments.
Performes the modulo operation on each of the entries of the given matrix.
Argument numerator
Matrix
Argument denominator
Scalar
Returns 1. entry
Matrix
mod([1,2;3,4], 2)
Computes the modulo matrix resulting in [1,0;1;0].
Performes the modulo operation on each of the entries of the given matrix.
Argument numerator
Scalar
Argument denominator
Matrix
Returns 1. entry
Matrix
mod(2, [1,2;3,4])
Computes the modulo matrix resulting in [0,0;2;2].
Calculates the modulo of the integer real parts of the numerator with respect to the denominator.
Argument numerator
Scalar
Argument denominator
Scalar
Returns 1. entry
Scalar
mod(17, 3)
Computes the modulo of 17 with respect to 3 resulting in 2.