Book HomeJava and XSLTSearch this book

8.146. Math::Complex

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.

emake

$z = Math::Complex->emake(args)

cplxe $z = cplxe(args)

Creates a complex number using the polar form.

display_format

display_format ([format])

When called as a method, sets display format for current object. If format is not specified, returns the current setting. Possible settings are:

c
Cartesian format

p
Polar format

When called as a function, overrides the default display format, which is Cartesian.

make

$z = Math::Complex->make(args)

cplx $z = cplx(args)

Creates a complex number using the Cartesian form.



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.