зеркало из https://github.com/github/ruby.git
* lib/cmath.rb (log10): raised exception when the given number is
a negative real. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d1dd871707
Коммит
a6afbaeb3b
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Jun 9 22:38:09 2009 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
|
* lib/cmath.rb (log10): raised exception when the given number is
|
||||||
|
a negative real.
|
||||||
|
|
||||||
Tue Jun 9 15:13:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Jun 9 15:13:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* dir.c (dir_s_glob): fixed rdoc. a patch from Joseph Pecoraro a
|
* dir.c (dir_s_glob): fixed rdoc. a patch from Joseph Pecoraro a
|
||||||
|
|
|
@ -47,7 +47,7 @@ module CMath
|
||||||
end
|
end
|
||||||
|
|
||||||
def log10(z)
|
def log10(z)
|
||||||
if z.real?
|
if z.real? and z >= 0
|
||||||
log10!(z)
|
log10!(z)
|
||||||
else
|
else
|
||||||
log(z) / log!(10)
|
log(z) / log!(10)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче