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

ruby-changes:37892

From: gogotanaka <ko1@a...>
Date: Sun, 15 Mar 2015 20:49:40 +0900 (JST)
Subject: [ruby-changes:37892] gogotanaka:r49973 (trunk): * math.c (math_cbrt): [DOC] Fix domain and codomain.

gogotanaka	2015-03-15 20:49:30 +0900 (Sun, 15 Mar 2015)

  New Revision: 49973

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

  Log:
    * math.c (math_cbrt): [DOC] Fix domain and codomain.

  Modified files:
    trunk/math.c
Index: math.c
===================================================================
--- math.c	(revision 49972)
+++ math.c	(revision 49973)
@@ -658,9 +658,9 @@ math_sqrt(VALUE obj, VALUE x) https://github.com/ruby/ruby/blob/trunk/math.c#L658
  *
  *  Returns the cube root of +x+.
  *
- *  Domain: [0, INFINITY)
+ *  Domain: (-INFINITY, INFINITY)
  *
- *  Codomain:[0, INFINITY)
+ *  Codomain: (-INFINITY, INFINITY)
  *
  *    -9.upto(9) {|x|
  *      p [x, Math.cbrt(x), Math.cbrt(x)**3]

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

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