[前][次][番号順一覧][スレッド一覧]

ruby-changes:15580

From: tadf <ko1@a...>
Date: Sun, 25 Apr 2010 16:00:00 +0900 (JST)
Subject: [ruby-changes:15580] Ruby:r27486 (trunk): * lib/cmath.rb: reverted experimental r23900.

tadf	2010-04-25 15:59:45 +0900 (Sun, 25 Apr 2010)

  New Revision: 27486

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27486

  Log:
    * lib/cmath.rb: reverted experimental r23900.

  Modified files:
    trunk/ChangeLog
    trunk/lib/cmath.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27485)
+++ ChangeLog	(revision 27486)
@@ -1,3 +1,7 @@
+Sun Apr 25 15:59:02 2010  Tadayoshi Funaba  <tadf@d...>
+
+	* lib/cmath.rb: reverted experimental r23900.
+
 Sun Apr 25 15:51:00 2010  Tadayoshi Funaba  <tadf@d...>
 
 	* complex.c, ratioanl.c: reverted experimental r24565.
Index: lib/cmath.rb
===================================================================
--- lib/cmath.rb	(revision 27485)
+++ lib/cmath.rb	(revision 27486)
@@ -4,10 +4,8 @@
 
   alias exp! exp
   alias log! log
-  alias log2! log2
   alias log10! log10
   alias sqrt! sqrt
-  alias cbrt! cbrt
 
   alias sin! sin
   alias cos! cos
@@ -49,14 +47,6 @@
     end
   end
 
-  def log2(z)
-    if z.real? and z >= 0
-      log2!(z)
-    else
-      log(z) / log!(2)
-    end
-  end
-
   def log10(z)
     if z.real? and z >= 0
       log10!(z)
@@ -84,14 +74,6 @@
     end
   end
 
-  def cbrt(z)
-    if z.real? and z >= 0
-      cbrt!(z)
-    else
-      Complex(z) ** (1.0/3)
-    end
-  end
-
   def sin(z)
     if z.real?
       sin!(z)
@@ -204,14 +186,10 @@
   module_function :exp
   module_function :log!
   module_function :log
-  module_function :log2!
-  module_function :log2
   module_function :log10!
   module_function :log10
   module_function :sqrt!
   module_function :sqrt
-  module_function :cbrt!
-  module_function :cbrt
 
   module_function :sin!
   module_function :sin
@@ -243,6 +221,8 @@
   module_function :atanh!
   module_function :atanh
 
+  module_function :log2
+  module_function :cbrt
   module_function :frexp
   module_function :ldexp
   module_function :hypot

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]