2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
20 .. index:: square-root
22 SQRT --- Square-root function
23 *****************************
27 ``SQRT(X)`` computes the square root of :samp:`{X}`.
30 The type shall be ``REAL`` or
34 The return value is of type ``REAL`` or ``COMPLEX``.
35 The kind type parameter is the same as :samp:`{X}`.
44 .. code-block:: fortran
49 .. code-block:: fortran
53 complex :: z = (1.0, 2.0)
70 - Fortran 77 and later
74 - Fortran 77 and later
78 - Fortran 77 and later