ruby-changes:11994
From: tadf <ko1@a...>
Date: Tue, 9 Jun 2009 22:44:03 +0900 (JST)
Subject: [ruby-changes:11994] Ruby:r23658 (trunk): * lib/cmath.rb (log10): raised exception when the given number is
tadf 2009-06-09 22:43:49 +0900 (Tue, 09 Jun 2009) New Revision: 23658 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23658 Log: * lib/cmath.rb (log10): raised exception when the given number is a negative real. Modified files: trunk/ChangeLog trunk/lib/cmath.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 23657) +++ ChangeLog (revision 23658) @@ -1,3 +1,8 @@ +Tue Jun 9 22:38:09 2009 Tadayoshi Funaba <tadf@d...> + + * lib/cmath.rb (log10): raised exception when the given number is + a negative real. + Tue Jun 9 15:13:14 2009 Nobuyoshi Nakada <nobu@r...> * dir.c (dir_s_glob): fixed rdoc. a patch from Joseph Pecoraro a Index: lib/cmath.rb =================================================================== --- lib/cmath.rb (revision 23657) +++ lib/cmath.rb (revision 23658) @@ -47,7 +47,7 @@ end def log10(z) - if z.real? + if z.real? and z >= 0 log10!(z) else log(z) / log!(10) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/