SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Polygon examples broken

From: Tom H. (NIH/N. [E] <hol...@ma...> - 2007年07月23日 20:14:12
Paul Kienzle wrote:
> Let me rephrase: Can we have a function sqrt(x) which returns real if x is
> nonnegative, and complex if it is negative? Similarly for other math functions
> such as log which produce complex values for negative numbers?
standard python is
>>> import cmath
>>> cmath.sqrt(-1)
1j

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /