sqrt(3f) - [FORTRAN:INTRINSIC:MATHEMATICS] Square-root function
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 use, intrinsic :: iso_fortran_env, only : real_kinds, & & real32, real64, real128 implicit none real(kind=real64) :: x = 2.0_real64 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 11, 2021 |