1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/cmath.rb: should return a real number if possible.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2011-07-23 12:14:43 +00:00
parent fe4ceb25b9
commit f0fa1d7a5a
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat Jul 23 21:14:00 2011 Tadayoshi Funaba <tadf@dotrb.org>
* lib/cmath.rb: should return a real number if possible.
Sat Jul 23 20:12:52 2011 NARUSE, Yui <naruse@ruby-lang.org>
* test/rake/test_rake_functional.rb (setup): Use __FILE__ for the base

View file

@ -147,7 +147,7 @@ module CMath
##
# returns the principal value of the cube root of +z+
def cbrt(z)
Complex(z) ** (1.0/3)
z ** (1.0/3)
end
##