1. 程式人生 > >python 複數的數學四則運算

python 複數的數學四則運算

 

print("Addition of two complex numbers : ",(4+3j)+(3-7j))  
print("Subtraction of two complex numbers : ",(4+3j)-(3-7j))  
print("Multiplication of two complex numbers : ",(4+3j)*(3-7j))  
print("Division of two complex numbers : ",(4+3j)/(3-7j))