Modulus Function

Summary

Returns the remainder of dividing x by n.

Syntax

mod(x,n)

Arguments

Name Description
x represent a number input
n divisor part of the expression

Usage

Output

Explanation

The mod function allows for modular arithmetic.

Modular arithmetic is a natural phenomena. Take for example the idea of rotation.