complex python code example
Example 1: complex numbers python
c = 1 + 2j
print(type(c))
print(c)
c1 = complex(2, 4)
print(type(c1))
print(c1)
Example 2: abs of complex nos in python
abs(5j+9) #square root of 5^2 +9^2
c = 1 + 2j
print(type(c))
print(c)
c1 = complex(2, 4)
print(type(c1))
print(c1)
abs(5j+9) #square root of 5^2 +9^2