binaryninja.numbers.Complex

class Complex

Complex defines the operations that work on the builtin complex type.

In short, those are: a conversion to complex, .real, .imag, +, -, *, /, abs(), .conjugate, ==, and !=.

If it is given heterogeneous arguments, and doesn’t have special knowledge about them, it should fall back to the builtin complex type as described below.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

conjugate()

(x+y*i).conjugate() returns (x-y*i).

Attributes

imag

Retrieve the imaginary component of this number.

real

Retrieve the real component of this number.