Provides support for complex numbers, including a full set of mathematical functions; permits creation and manipulation of complex numbers. Numerous overload and other operations are provided for working with complex numbers. See the documentation for the module for the complete list and also for a discussion of complex numbers. The following methods are provided.
Creates a complex number using the polar form.
When called as a method, sets display format for current object. If format is not specified, returns the current setting. Possible settings are:
When called as a function, overrides the default display format, which is Cartesian.
Creates a complex number using the Cartesian form.
Copyright © 2002 O'Reilly & Associates. All rights reserved.