sqrt(3f) - [FORTRAN:INTRINSIC:MATHEMATICS] Square-root function
Syntax
Description
Arguments
Return Value
Example
Standard
Class
result = sqrt(x)
sqrt(x) computes the square root of X.
X - The type shall be REAL or COMPLEX.
The return value is of type REAL or COMPLEX. The kind type parameter is the same as X.
Sample program:
program demo_sqrt real(8) :: x = 2.0_8 complex :: z = (1.0, 2.0) x = sqrt(x) z = sqrt(z) end program demo_sqrt
[[FORTRAN 77]] and later
Elemental function
sqrt (3) | March 19, 2019 |