repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* include/ruby/encoding.h (rb_econv_check_error): declared.
[ruby-svn.git]
/
missing
/
cbrt.c
blob
54db2703a0844dceb1fe36fecaae9c9daaa8c56c
1
#include <math.h>
2
3
double
cbrt
(
double
x
)
4
{
5
if
(
x
<
0
)
6
return
-
pow
(-
x
,
1
/
3.0
);
7
else
8
return
pow
(
x
,
1
/
3.0
);
9
}
10