course content

Course Content

Data Types in Python

Imaginary Numbers (Complex)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.

question-icon

Define the complex numbers according to the following comments:

# The real part is 9, and the imaginary is 2
___
+
___
___


# The real part is 167, and the imaginary is -3
___
___
___
j

Click or drag`n`drop items and fill in the blanks

dots
9
dots
3
dots
2
dots
167
dots
-
dots
j
down-icon

Section 1.

Chapter 5