On 04/01/2021 10:37, Oscar Benjamin wrote:
In Python 4j is the literal syntax to create an imaginary number (0 +
4*I). You need to use 4*j.

I don't understand this because Thomas Lignon imported sqrt from sympy, so why didn't he get the imaginary answer he was expecting?

Indeed, trying this with Python 3.7 and SymPy 1.7, I get:

 import sympy
 from sympy import sqrt
 sqrt(-1)
I

David

--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/346382fd-f803-cac3-eb8c-767064402c68%40dbailey.co.uk.

Reply via email to