Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

mod

Calculates the modulo of the integer real parts of the arguments.

References

mod(numerator,denominator)

Performes the modulo operation on each of the entries of the given matrix.

Argument numerator

Matrix

Argument denominator

Scalar

Returns 1. entry

Matrix

Example

mod([1,2;3,4], 2)

Computes the modulo matrix resulting in [1,0;1;0].

mod(numerator,denominator)

Performes the modulo operation on each of the entries of the given matrix.

Argument numerator

Scalar

Argument denominator

Matrix

Returns 1. entry

Matrix

Example

mod(2, [1,2;3,4])

Computes the modulo matrix resulting in [0,0;2;2].

mod(numerator,denominator)

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

Example

mod(17, 3)

Computes the modulo of 17 with respect to 3 resulting in 2.

Clone this wiki locally