Complex function trong Python
Complex function trong Python

Hàm complex() được sử dụng để tạo ra một số phức. Số phức là một số có phần thực và phần ảo.

z = complex(3, 4)
print(z)  # Output: (3+4j)
```

Trong ví dụ này, chúng ta tạo ra số phức `z` với phần thực là 3 và phần ảo là 4.
Last modified: September 20, 2023

Author

Comments

Write a Reply or Comment

Your email address will not be published.