A complex variable or value is usually represented as a pair of floating-point numbers. Languages that support a complex data type usually provide special syntax for building such values, and extend the basic arithmetic operations ('+', '−', '×', '÷') to act on them. These operations are usually translated by the compiler into a sequence of floating-point machine instructions or into library calls. Those languages may also provide support for other operations, such as formatting, equality testing, etc. As in mathematics, those languages often interpret a floating-point value as equivalent to a complex value with a zero imaginary part.
A guide to Fortran IV programming Daniel D. McCracken - 1972 - 288 pages. "The capability provided by Fortran complex operations is a great savings in programming effort in certain problems. " https://books.google.com/books?id=aNhWAAAAMAAJ&q=fortran+complex ↩
Python v2.6.5 documentation https://docs.python.org/library/stdtypes.html ↩
"Complex and Rational Numbers — Julia Language 0.3.13-pre documentation". https://docs.julialang.org/en/v0.3/manual/complex-and-rational-numbers/ ↩
"R Data Types". www.w3schools.com. Retrieved 2022-04-26. https://www.w3schools.com/r/r_data_types.asp ↩