source:
LMDZ6/trunk/libf/misc/cbrt.f90
@
5403
Last change on this file since 5403 was 5246, checked in by , 7 weeks ago | |
---|---|
File size: 172 bytes |
Rev | Line | |
---|---|---|
[5246] | 1 | FUNCTION cbrt(x) |
2 | ! ! Return the cubic root for positive or negative x | |
3 | IMPLICIT NONE | |
[2291] | 4 | |
[5246] | 5 | REAL :: x,cbrt |
[2291] | 6 | |
[5246] | 7 | cbrt=sign(1.,x)*(abs(x)**(1./3.)) |
[2291] | 8 | |
[5246] | 9 | RETURN |
10 | END FUNCTION cbrt | |
[2291] | 11 |
Note: See TracBrowser
for help on using the repository browser.