Skip to Content

Python – Multiply Two Complex Numbers

In this tutorial, we will look at how to multiply two complex numbers together in Python with the help of some examples. When you multiply two complex numbers, for example, a+bj and c+dj, the resulting complex number is (ac-bd)+(ad+bc)j. Note that multiplying the imaginary unit with itself results in the real value -1,j*j = -1. …

Read More about Python – Multiply Two Complex Numbers

Python – Subtract Two Complex Numbers

In this tutorial, we will look at how to subtract two complex numbers in Python with the help of some examples. When you subtract two complex numbers, for example, subtracting c+dj from a+bj, the resulting complex number is (a-c)+(b-d)j. How to subtract two or more complex numbers in Python? You can use the subtraction operator …

Read More about Python – Subtract Two Complex Numbers

Python – Convert Complex Number to Polar Form

In this tutorial, we will look at how to convert a complex number in Python to its polar form with the help of some examples. In the polar form, a complex number is represented using its magnitude (or absolute value) and its phase angle. How to get the polar coordinates of a complex number in …

Read More about Python – Convert Complex Number to Polar Form

Python – Get the Phase Angle of a Complex Number

In this tutorial, we will look at how to get the phase (or the angle) of a complex number in Python with the help of some examples. The phase (or angle) of a complex number is defined as the angle the complex number vector makes with the real axis in the counter-clockwise direction. How to …

Read More about Python – Get the Phase Angle of a Complex Number

Python – Get the Absolute Value of a Complex Number

In this tutorial, we will look at how to get the absolute value (also called the magnitude) of a complex number in Python with the help of some examples. In mathematics, the absolute value (or the magnitude) of the complex number a + bj is defined as the euclidean norm. The below image illustrates its …

Read More about Python – Get the Absolute Value of a Complex Number