| Path: | lib/complex.rb |
| Last Update: | Sun Jun 01 17:54:45 -0500 2008 |
complex.rb -
$Release Version: 0.5 $
$Revision: 1.3 $
$Date: 1998/07/08 10:05:28 $
by Keiju ISHITSUKA(SHL Japan Inc.)
complex.rb implements the Complex class for complex numbers. Additionally, some methods in other Numeric classes are redefined or added to allow greater interoperability with Complex numbers.
Complex numbers can be created in the following manner:
Additionally, note the following:
The following Math module methods are redefined to handle Complex arguments. They will work as normal with non-Complex arguments.
sqrt exp cos sin tan log log10 cosh sinh tanh acos asin atan atan2 acosh asinh atanh
ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.