home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / fortran / 5116 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!haven.umd.edu!purdue!mentor.cc.purdue.edu!news
  3. From: ags@seaman.cc.purdue.edu (Dave Seaman)
  4. Subject: Re: intrinsic function for the imaginary part and conjugate?
  5. Message-ID: <C186q7.9wD@mentor.cc.purdue.edu>
  6. Sender: news@mentor.cc.purdue.edu (USENET News)
  7. Organization: Purdue University
  8. References: <C183Gu.7MK@athena.cs.uga.edu>
  9. Distribution: usa
  10. Date: Thu, 21 Jan 1993 22:34:55 GMT
  11. Lines: 22
  12.  
  13. In article <C183Gu.7MK@athena.cs.uga.edu> shen@athena.cs.uga.edu (Mingzuo  
  14. Shen) writes:
  15. > Hi all,
  16. >     Metcalf's book (Effective Fortran, 1985) has a list of
  17. > intrinsic functions. Among them, the intrinsic function for
  18. > obtaining the imaginary part of a complex number is AIMAG,
  19. > which makes sense. However, there is no intrinsic function
  20. > for obtaining the real part of a complex number?
  21.  
  22. I have not seen Metcalf's book, but the Fortran 77 standard says the  
  23. generic function REAL, when given a complex argument, returns the real  
  24. part.
  25.  
  26. >     More seriously(?), the instrinsic function for complex
  27. > conjugate is also AIMAG? I am sure this is a typo or something.
  28.  
  29. According to the standard, the complex conjugate function is called CONJG.
  30.  
  31. --
  32. Dave Seaman
  33. ags@seaman.cc.purdue.edu
  34.