math.pow vs pow

John J. Lee jjl at pobox.com
Fri Nov 28 00:31:17 CET 2003


Clueless Moron <Bill.Gates at Microsoft.com> writes:

> Why do they act differently with respect to complex numbers?
[...]
> Apart from handling complex numbers, the built-in pow also has a
> modulo efficiency hack.
> 
> When would I want to use math.pow?

For some applications, getting a complex result means you've made a
mistake.  And some people don't know what a complex number is, and
would rather have their teeth drilled than find out.


John

You wouldn't know a subtle plan if it painted itself purple and danced
naked on top of a harpsichord singing 'Subtle Plans Are Here Again'
 
Blackadder




More information about the Python-list mailing list