[Tutor] Value Error

Alan Gauld alan.gauld at btinternet.com
Thu Jun 13 02:35:38 CEST 2013


On 13/06/13 01:08, Marc Tompkins wrote:
> On Wed, Jun 12, 2013 at 3:31 PM, Dave Angel <davea at davea.name
> <mailto:davea at davea.name>> wrote:
>
>      >>> cmath.sqrt(float((math.e **(i * math.pi)).real))
>     1j
>
> Sh*t just got real.

no, it's imaginary. :-)


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list