Next: SIN, Previous: SECNDS, Up: Intrinsic Procedures
SQRT — Square-root functionSQRT(X) computes the square root of X.
     X = SQRT(X)
     | X | The type shall be REAL(*)orCOMPLEX(*). | 
REAL(*) or COMPLEX(*). 
The kind type parameter is the same as X.
               program test_sqrt
            real(8) :: x = 2.0_8
            complex :: z = (1.0, 2.0)
            x = sqrt(x)
            z = sqrt(z)
          end program test_sqrt
     
     | Name | Argument | Return type | Option | 
| DSQRT(X) | REAL(8) X | REAL(8) | f95, gnu | 
| CSQRT(X) | COMPLEX(4) X | COMPLEX(4) | f95, gnu | 
| ZSQRT(X) | COMPLEX(8) X | COMPLEX(8) | f95, gnu | 
| CDSQRT(X) | COMPLEX(8) X | COMPLEX(8) | f95, gnu |