parrotcode: Python Complex Numbers PMC Class | |
Contents | Dynamic PMCs |
classes/pycomplex.pmc - Python Complex Numbers PMC Class
Complex
provides a representation of complex numbers.
It handles string parsing/generating and basic mathematical operations.
PMC* "__new__"(PMC *class, PMC *source)
PMC *get_class()
STRING *get_string ()
a+bi
.STRING *get_repr()
INTVAL hash()
|