Last Modified
2015-07-14 14:24:11 -0700
Requires

Description

CMath

CMath is a library that provides trigonometric and transcendental functions for complex numbers.

Usage

To start using this library, simply:

require "cmath"

Square root of a negative number is a complex number.

CMath.sqrt(-9)  #=> 0+3.0i
blog comments powered by Disqus