Message360989
+0 from me.
Another use is computing the Carmichael function for composite numbers (like an RSA encryption modulus, in which context the Carmichael function is routinely used).
But only +0 instead of +1 because it's so easy to build from gcd().
I don't agree it's tricky at all. While lcm(0, 0) undoubtedly should return 0 in a general-purpose library function, in my own code I've never supplied that. Because in every application I've ever had for it, I would rather get an exception if I ever passed two zeroes - that would always have been a mistake. |
|
Date |
User |
Action |
Args |
2020-01-29 22:23:55 | tim.peters | set | recipients:
+ tim.peters, lemburg, rhettinger, mark.dickinson, vstinner, stutzbach, steven.daprano, serhiy.storchaka, veky, Ananthakrishnan |
2020-01-29 22:23:55 | tim.peters | set | messageid: <1580336635.77.0.61037581081.issue39479@roundup.psfhosted.org> |
2020-01-29 22:23:55 | tim.peters | link | issue39479 messages |
2020-01-29 22:23:55 | tim.peters | create | |
|