home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!rutgers!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!pmontgom
- From: pmontgom@math.orst.edu (Peter Montgomery)
- Newsgroups: comp.lang.fortran
- Subject: Re: How does one return a logical value...???
- Message-ID: <1emiqnINNrs1@talon.UCS.ORST.EDU>
- Date: 22 Nov 92 00:04:39 GMT
- References: <kf2iy2_00YUo8INXQF@andrew.cmu.edu> <BxzC1x.n0s@news.cso.uiuc.edu> <1992Nov20.210324.3906@draco.macsch.com>
- Organization: Oregon State University Math Department
- Lines: 22
- NNTP-Posting-Host: lab12.math.orst.edu
-
- In article <1992Nov20.210324.3906@draco.macsch.com>
- dnl@convex.is.macsch.com (David Lombard) writes:
-
- >The following statement is fairly clear:
-
- > IF( A.EQ.B .EQV. C.EQ.D ) ...
-
- >What would you do with this phantom?
-
- > IF( A.EQ.B .EQ. C.EQ.D ) ...
-
-
- There is no ambiguity if A, B, C, D are all type logical,
- since logical equality is an associative operation
- (A .EQV. (B .EQV. C)) is equivalent to ((A .EQV. B) .EQV. C).
- If the operands are numeric, they can be paired off starting from the left.
-
-
-
- --
- Peter L. Montgomery Internet: pmontgom@math.orst.edu
- Dept. of Mathematics, Oregon State Univ, Corvallis, OR 97331-4605 USA
-