Teks sumber — English
Terjemahan — Bahasa Indonesia
Complex Numbers as C Structures
Bilangan Kompleks sebagai Struktur C
The API also provides functions for working with complex numbers, using the :c:type:`Py_complex` representation. Note that the functions which accept these structures as parameters and return them as results do so *by value* rather than dereferencing them through pointers.
Return the sum of two complex numbers, using the C :c:type:`Py_complex` representation.
Return the difference between two complex numbers, using the C :c:type:`Py_complex` representation.
Return the product of two complex numbers, using the C :c:type:`Py_complex` representation.
Return the quotient of two complex numbers, using the C :c:type:`Py_complex` representation.