Course Content

Data Types in Python

Imaginary Numbers (Complex)

Complex numbers consist of a real and an imaginary part:

Here, `4`

and `6`

are the real parts of the numbers, and `5`

and `-7`

are imaginary; `j`

represents imaginary. To make it clear, `j`

is the square root of `-1`

. The square root of -25 can be calculated this way:

**-25 = 25 * (-1)** We can calculate the square root of `25`

which is `5`

and the square root of `-1`

is` j`

.

Section 1.

Chapter 5