Imaginary Numbers

suggest change

Imaginary numbers in Python are represented by a ā€œjā€ or ā€œJā€ trailing the target number.

1j         # Equivalent to the square root of -1.
1j * 1j    # = (-1+0j)

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents