+0  
 
-1
253
2
avatar

what is the mathematical function mod

Guest Apr 19, 2017
Sort: 

2+0 Answers

 #1
avatar+445 
+1

In computing, the modulo operation finds the remainder after division of one number by another (sometimes called modulus). Given two positive numbers, a (the dividend) and n (the divisor), a modulo n (abbreviated as a mod n) is the remainder of the Euclidean division of a by n.

Neptune  Apr 19, 2017
 #2
avatar+19376 
0

what is the mathematical function mod

 

Formula:

\(a \text{ mod } b = a-b\cdot [\frac ab] \qquad \qquad [\frac ab] \text{ is the integer part of a divided b}\)

 

Example:

\(102 \text{ mod } 12 = 102-12\cdot [\frac{102}{12}] \\ 102 \text{ mod } 12 = 102-12\cdot [8.5] \\ 102 \text{ mod } 12 = 102-12\cdot 8 \\ 102 \text{ mod } 12 = 102-96 \\ 102 \text{ mod } 12 = 6 \)

 

The remainder of \(\frac{102}{12} \) is 6

 

laugh

heureka  Apr 20, 2017
edited by heureka  Apr 20, 2017
edited by heureka  Apr 20, 2017

9 Online Users

New Privacy Policy (May 2018)

We use cookies to personalise content and advertisements and to analyse access to our website. Furthermore, our partners for online advertising receive pseudonymised information about your use of our website. Please click on "Accept cookies" if you agree to the setting of cookies. Cookies that do not require consent remain unaffected by this, see cookie policy and privacy policy.