Interested in advertising on Derpibooru? Click here for information!
Help fund the $15 daily operational cost of Derpibooru - support us financially!
Description
No description provided.
Help fund the $15 daily operational cost of Derpibooru - support us financially!
No description provided.
That’s cool, just don’t over expose them, i had a teacher that was too much of a fan of evangelion :v
Yes. And one of my students regularly brings a My Little Pony lunchbox.
It’s college, nobody blinks at fandoms. Be who you wanna be, like what you wanna like.
Wait, your student’s know that you like ponies?
The information in the article you linked is only really relevant to a limited set of problems on a limited set of target architectures. Division and modulo are actually the same (singular) operation on the x86 architecture, on which I’d wager that breaking down the modulo operator like that would generate much slower code, since any multiplication or subtraction would be completely superfluous to actually finding the result.
http://embeddedgurus.com/stack-overflow/2011/02/efficient-c-tip-13-use-the-modulus-operator-with-caution/
how do you figure?
Maud is being used to replace the word “mod.”
If you divide y into x and the remainder is R, then x is R mod y.
Examples:
3 is 1 mod 2, because 2 into 3 has remainder 1.
All even numbers are 0 mod 2, and all odd numbers are 1 mod 2.
27 is 2 mod 5, because 5 into 25 has remainder 2.
Every number is either 1, 2, 3, 4, or 0 mod 5.
14 is 0 mod 7, because 7 goes into 14 evenly.
In the case of the picture, 10 mod 4 = 2.
(The formulation x mod y = R is thinking of mod more as an operation with two inputs, like computer programmers would think of it.)
This is what I get for never going past geometry.
Sorry, meant integer number division.
10 divided by 4 in integers is 2, remainder 2. In normal decimal math, it’s 2.5.
I figured it was that, I just didn’t know what it was called.
“Maud” is close to “mod” or “modulus”, meaning the remainder after you do cardinal number division. So “10 mod 4” leaves 2 left over.
10 mod 4 = 2