9.82. DREAL

9.82 DREAL — Double real part function

Description:
DREAL(Z) returns the real part of complex variable Z.
Standard:
GNU extension
Class:
Elemental function
Syntax:
RESULT = DREAL(A)
Arguments:
A The type shall be COMPLEX(8).
Return value:
The return value is of type REAL(8).
Example:
program test_dreal
    complex(8) :: z = (1.3_8,7.2_8)
    print *, dreal(z)
end program test_dreal
See also:
AIMAG

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gfortran/DREAL.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部