Clicky

Fortran Wiki
aimag (changes)

Skip the Navigation Links | Home Page | All Pages | Recently Revised | Authors | Feeds | Export |

Showing changes from revision #1 to #2: (追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)

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.

Standard

(削除) Fortran 77 and later (削除ここまで)(追記) FORTRAN 77 (追記ここまで)(追記) and later (追記ここまで)

Class

Elemental function

Syntax

result = aimag(z)

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

program test_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 test_aimag

category: (削除) Intrinsics (削除ここまで)(追記) intrinsics (追記ここまで)

Revised on April 30, 2009 17:40:11 by Jason Blevins (71.70.142.190) (739 characters / 0.0 pages)
Edit | Back in time (1 revision) | Hide changes | History | Views: Print | TeX | Source | Linked from: Intrinsic procedures

AltStyle によって変換されたページ (->オリジナル) /