aboutsummaryrefslogtreecommitdiffstats
path: root/math.c
diff options
context:
space:
mode:
authorgogotanaka <gogotanaka@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-15 11:49:30 +0000
committergogotanaka <gogotanaka@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-15 11:49:30 +0000
commitef8537bc9e0ec9cc4e711e17155e2ade272dfa1f (patch)
tree6ee86b4aa7ab9cb276c83f63046ae6891ef6545a /math.c
parent573772ab5b143eae7130c2dd3bc9f6f221d0c742 (diff)
downloadruby-ef8537bc9e0ec9cc4e711e17155e2ade272dfa1f.tar.gz
* math.c (math_cbrt): [DOC] Fix domain and codomain.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/math.c b/math.c
index a41fdb5b54..64b38741db 100644
--- a/math.c
+++ b/math.c
@@ -658,9 +658,9 @@ math_sqrt(VALUE obj, VALUE x)
*
* 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]