Problem calling math.cos()
Tim Peters
tim.peters at gmail.com
Sat Apr 22 16:46:38 EDT 2006
[Roy Smith]
> I certainly agree about using atan2() instead of atan(), but I'm surprised
> there's not an easier way to get the phase of a complex, just like abs()
> gives you the modulus. I can see why you wouldn't want to pollute the
> global namespace with another built-in just for this purpose, but surely a
> complex.phase property wouldn't hurt?
Or method. "Does anyone care enough to do the work?" is the real
question. I don't :-)
More information about the Python-list
mailing list