From 3d73162d8433cae04f1540e687dd60728862f4e1 Mon Sep 17 00:00:00 2001 From: Sandor Szuecs Date: Sun, 15 May 2011 19:42:15 +0200 Subject: [PATCH 1/2] init cmath doc with a small example. Signed-off-by: Sandor Szuecs --- lib/cmath.rb | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib/cmath.rb b/lib/cmath.rb index 3c94221..8a47b5f 100644 --- a/lib/cmath.rb +++ b/lib/cmath.rb @@ -1,3 +1,10 @@ +# 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.7.5.1