Complex Methods
complex.conjugate()
Return the complex number with the same real component and the opposite imaginary component. For finite values, multiplying a number by its conjugate gives the square of its magnitude mathematically, subject to floating-point rounding. It does not negate the real component. Signed zeros and nonfinite components follow floating-point behavior.
Formal Syntax & Structure
python syntaxpython
value.conjugate()Return Value
complex
Numeric conjugate.
Working Example
Example Snippetpython
z = 3 + 4jprint(z.conjugate())print(z * z.conjugate())