note
Zaxo
<p>Everybody, please pay attention to [jepri]. He's got it right.</p>
<p>The definition of Abel he mentions is that (perlishly):</p>
<code>my $num = $y*int($n) + $modulus;</code>
<p>This relation is uniquely satisfied by <code>!$y && $modulus == $num </code></p>
<p>It does not involve division, allowing it to apply to algebrae lacking a multiplicative inverse (those are called <em>modules</em>).</p>
<p>It applies to floats too. Think <code>$y = 2*$pi</code>. Modulus is phase in that case.</p>
<p>Perl's % operator is really just remainder on integers, a bogosity which does not generalize well.</p>
<p>Don't fall into the trap of thinking your intuition or experience is a valid basis for modifying mathematical definitions. You will come to grief when a "proven correct" program crashes. You may blame math, but you will be wrong.</p>
<p>After Compline,<br/>Zaxo</p>
<p><b>Update:</b> Rereading this, I realize that it sounds directed at [nella]. Not the case: this is a broadcast rant. [nella] started a fine thread, and seems to be on the side of the angels.</p>
87384
87384