summaryrefslogtreecommitdiffstats
path: root/lib/complex.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-05 14:25:40 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-05 14:25:40 +0000
commita9af0550b7439ba8506734109d879f45be4e5766 (patch)
treeae0ca032557e77eb17c4f62f73ccf91dbff37498 /lib/complex.rb
parent4a5a3f5afb42e39e228349d3d377cbc7dfea4da8 (diff)
downloadruby-a9af0550b7439ba8506734109d879f45be4e5766.tar.gz
ruby-a9af0550b7439ba8506734109d879f45be4e5766.tar.xz
ruby-a9af0550b7439ba8506734109d879f45be4e5766.zip
* lib/cmath.rb: new.
* lib/complex.rb: depends lib/cmath.rb. * lib/rational.rb: added rdiv. * complex.c: removed some math functions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/complex.rb')
-rw-r--r--lib/complex.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/complex.rb b/lib/complex.rb
index 9d926023a..a585e95d9 100644
--- a/lib/complex.rb
+++ b/lib/complex.rb
@@ -1,3 +1,8 @@
+require 'cmath'
+
+Math = CMath
+
+=begin
module Math
alias exp! exp
@@ -219,3 +224,4 @@ module Math
module_function :atanh
end
+=end