[UP]


Manual Reference Pages  - aimag (3)

NAME

AIMAG(3f) - [FORTRAN:INTRINSIC:NUMERIC] Imaginary part of complex number

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class

SYNTAX

result = AIMAG(Z)

DESCRIPTION

AIMAG(Z) yields the imaginary part of complex argument Z. The IMAG(Z) and IMAGPART(Z) intrinsic functions are provided for compatibility with G77, and their use in new code is strongly discouraged.

ARGUMENTS

Z - The type of the argument shall be COMPLEX.

RETURN VALUE

The return value is of type REAL with the kind type parameter of the argument.

EXAMPLE

Sample program:

    program demo_aimag
      complex(4) z4
      complex(8) z8
      z4 = cmplx(1.e0_4, 0.e0_4)
      z8 = cmplx(0.e0_8, 1.e0_8)
      print *, aimag(z4), dimag(z8)
    end program demo_aimag

STANDARD

[[FORTRAN 77]] and later

CLASS

Elemental function


aimag (3) March 18, 2019
Generated by manServer 1.08 from 35c453f3-e21e-4ce6-a1ba-b78284ec1166 using man macros.