My trusty $10 Casio calculator tells me that the 3 cube roots of 1 are:
1, (-.5 +0.866025403j), and (-.5 -0.866025403j), or thereabouts. Is there a way to do this in Python?


Checking the Casio results with Python:
>>> 1**3
1
>>> (-.5 + .866025403j)**3
(0.99999999796196859+1.1766579932626087e-009j)
>>> (-.5 - .866025403j)**3
(0.99999999796196859-1.1766579932626087e-009j)


Thanks,

Dick Moores
[EMAIL PROTECTED]

_______________________________________________
Tutor maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to