mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
573772ab5b
commit
ef8537bc9e
1 changed files with 2 additions and 2 deletions
4
math.c
4
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]
|
||||
|
|
Loading…
Reference in a new issue