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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel