POV-Ray : Newsgroups : povray.newusers : What does the 'mod' operator do? : Re: What does the 'mod' operator do? Server Time
10 Nov 2025 20:46:20 EST (-0500)
  Re: What does the 'mod' operator do?  
From: Kenneth
Date: 10 Nov 2025 06:15:00
Message: <web.6911c81e1bdd4431e83955656e066e29@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
>
> fwiw, I like the term "clock arithmetic", can understand it :-), find it
> "illustrative".
> <en.wikipedia.org/wiki/Modular_arithmetic>
>

Yes, I saw that too, and it makes perfect sense-- I could 'see' the result! I
even made a note about it in my test scene, for future reference when I
eventually forget what 'modulo' means, ha.

When I was first querying Google about this topic and read the AI summary--
which changes by the minute, apparently-- it also suggested a particular
video...which I now can't find. The mathematician host quickly discussed some
typical (i.e. pure-integer) examples of using mod...but then began a rather
abstract discourse on how modulo should be thought of in other NON-math
contexts. I had real trouble following it, but my own takeaway would be
*something* like this (not his own original example, which I didn't understand):

      mod(a collection of vegetables,vegetables that are red)

so the 'remainder' would be...vegetables that are not red(?)

Anyway, the video was certainly not a 'simple and easy' introduction to the
topic; it's a mystery as to how the AI engine picked it, out of so many others.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.