NAME ^

classes/pycomplex.pmc - Python Complex Numbers PMC Class

DESCRIPTION ^

Complex provides a representation of complex numbers. It handles string parsing/generating and basic mathematical operations.

Functions ^

PMC* "__new__"(PMC *class, PMC *source)

Create a new complex number

PMC *get_class()

Return the class of this object.

STRING *get_string ()

Returns the complex number as a string in the form a+bi.

STRING *get_repr()

Returns the string representation of the integer.

INTVAL hash()

Returns a unique hash for this value


parrot