A complex number is just two real numbers stitched together. It’s used in many areas, such as the Fourier transform which is common in computer science is often represented with complex numbers because it deals with waves and waves are two-dimensional, and so rather than needing two different equations you can represent it with a single equation where the two-dimensional behavior occurs on the complex-plane.
In principle you can always just split a complex number into two real numbers and carry on the calculation that way. In fact, if we couldn’t, then no one would use complex numbers, because computers can’t process imaginary numbers directly. Every computer program that deals with complex numbers, behind the scenes, is decomposing it into two real-valued floating point numbers.
A complex number is just two real numbers stitched together. It’s used in many areas, such as the Fourier transform which is common in computer science is often represented with complex numbers because it deals with waves and waves are two-dimensional, and so rather than needing two different equations you can represent it with a single equation where the two-dimensional behavior occurs on the complex-plane.
In principle you can always just split a complex number into two real numbers and carry on the calculation that way. In fact, if we couldn’t, then no one would use complex numbers, because computers can’t process imaginary numbers directly. Every computer program that deals with complex numbers, behind the scenes, is decomposing it into two real-valued floating point numbers.