## 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. …

## 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 …

## Python – Add Two Complex Numbers

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

## 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 …

## 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 …

## 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 …

## Numpy – Get the Complex Conjugate

In this tutorial, we will look at how to get the complex conjugate of a complex number in a Numpy array. The complex conjugate of a complex number is obtained by changing the sign of the imaginary part. For example for the complex number a + bj, the complex conjugate would be a – bj. …

## Numpy – Get the Imaginary Part of a Complex Number

In this tutorial, we will look at how to get the imaginary part of a complex number in a Numpy array. For example for the complex number a + bj, a is the real part and b is the imaginary part. How to get the imaginary part of complex values in a Numpy array? You …

## Numpy – Get the Real Part of a Complex Number

In this tutorial, we will look at how to get the real part of a complex number in a Numpy array. For example for the complex number a + bj, a is the real part and b is the imaginary part. How to get the real part of complex values in a Numpy array? You …

## Numpy – Check If a Number is Real

In this tutorial, we will look at how to check if a number in a Numpy array is a real number or not with the help of some examples. Real numbers in mathematics are numbers that do not have an imaginary part, for example – 21, 4.31, 2 + 0j, etc. How to test for …