Project

General

Profile

Bug #4727 » 0001-init-cmath-doc-with-a-small-example.patch

module doc - sz (Sandor Szücs), 05/18/2011 01:52 AM

View differences:

lib/cmath.rb
# This module provides access to mathematical functions for complex
# numbers.
#
# Example
# # Square root of a negative number is a complex number.
# CMath.sqrt(-9) #=> 0+3.0i
#
module CMath
include Math
(1-1/2)