home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!Sirius.dfn.de!tubsibr!rzphy1.rz.tu-bs.de!i2041101
- From: i2041101@rzphy1.rz.tu-bs.de (Paulini)
- Subject: Re: Does your f77 compiler accepts this?
- Message-ID: <1992Aug25.213754.7260@ibr.cs.tu-bs.de>
- Sender: postnntp@ibr.cs.tu-bs.de (nntp inews entry)
- Organization: TU Braunschweig, Informatik, Bueltenweg, Germany
- References: <2873@tansei1.tansei.cc.u-tokyo.ac.jp> <BURLEY.92Aug24145148@geech.gnu.ai.mit.edu> <1992Aug25.153937.26559@newshost.lanl.gov> <BtJyIM.1p2@mentor.cc.purdue.edu>
- Date: Tue, 25 Aug 1992 21:37:54 GMT
- Lines: 44
-
- In article <BtJyIM.1p2@mentor.cc.purdue.edu>, ags@mentor.cc.purdue.edu
- (Dave Seaman) writes:
- |>
- |> The paragraph in question is concerned with complex *constants*.
- |>
- |> (2.0,3.0) is an example of a complex constant.
- |> (X,X) is not a constant, and is not legal Fortran.
- |>
- |> If X is a real number, then the complex number X + iX is given in Fortran by
- |>
- |> CMPLX(X,X)
- |>
- |> where CMPLX is a required intrinsic function in the ANSI standard.
- |>
- |> Each of the statements
- |>
- |> WRITE (*,*) X
- |> WRITE (*,*) (X)
- |> WRITE (*,*) CMPLX(X,X)
- |>
- |> is legal Fortran, but
- |>
- |> WRITE (*,*) (X,X)
- |>
- |> is not.
- |>
- |>
- |> --
- |> Dave Seaman
- |> ags@seaman.cc.purdue.edu
-
- (X,X) is a constant if 'X' is defined in a PARAMETER-declaration. Then
-
- WRITE (*,*) (X,X)
-
- is legal, otherwise not.
-
- --
- Joachim Paulini Phone 0531-391-5190 (voice)
- Fax 0531-391-5833
- TU Braunschweig e-mail i2041101@ws.rz.tu-bs.de
- Institut f. Theoretische Physik
- Mendelssohnstrasse 3 / 3300 Braunschweig / Germany
-
-