SoFunction
Updated on 2024-11-15

Summary of conjugate complex knowledge points for complex numbers in python

Science students should understand the conjugate it, often in mathematics or physics and chemistry, in the coordinate axes to describe the conjugate function is still relatively clear, py language will often appear on the use of conjugate function, the operation is also very interesting, in the computer class, often used as a test question, do not understand the deep, or have not eaten through the students, look at the following to prepare for you to master the content of the fast reading The following is a quick read for you to master.

Python's Plural Ensemble

1. Addition, subtraction, multiplication and division between complex numbers.

>>> x = 3 + 4j
>>> y = 5 + 6j
>>> x + y # (8+10j)
>>> x - y
(-2-2j)
>>> x * y
(-9+38j)
>>> x / y
(0.6393442622950819+0.03278688524590165j)

2、Built-in function abs() can calculate the modulus of a complex number.

>>> abs(x)
5.0
>>> 
4.0
>>> 
3.0

3. Conjugate complex numbers

>>> ()

Knowledge Point Expansion:

Plurals in python

1. The syntax for the plural is real + image j

2. Both real and imaginary parts are floating point numbers

3. The suffix of the imaginary part can be "j" or "J"

4. The conjugate method of a complex number returns the conjugate of the complex number.

To this point this article on python in the plural of the conjugate plural knowledge point summary of the article is introduced to this, more related python in the plural of the conjugate plural what is the content please search for my previous articles or continue to browse the following related articles I hope you will support me more in the future!