Complex Math Menu

This submenu is located under More Modules.

Item

Description

from cmath import *

Imports all methods from the cmath module.

complex(real,imag)

Returns a complex number.

rect(modulus,argument)

Converts polar coordinates to rectangular form of a complex number.

.real

Returns real part of the complex number.

.imag

Returns imaginary part of a complex number.

polar()

Converts rectangular form to polar coordinates of a complex number.

phase()

Returns phase of a complex number.

exp()

Returns e**x.

cos()

Returns cosine of a complex number.

sin()

Returns sine of a complex number.

log()

Returns natural logarithm of a complex number.

log10()

Returns base 10 logarithm of a complex number.

sqrt()

Returns square root of a complex number.