note
swampyankee
<p>
Considering <tt>.EQV.</tt> as <tt>==</tt> for booleans is more or less correct: <tt>a .eqv. b</tt> is true if a and b are either both true or both false, and it would result in false otherwise. Most modern Fortran compilers will squawk if either a or b isn't a boolean (Fortran <tt>logical</tt>), so a fragment like<code>
logical boole
integer int
int = 42
boole = .TRUE.
write(*,*) 'is int .eqv. boole true?', int .eqv. boole
</code>
will cause a compile-time error, which is, on the whole, probably a good thing.
As I said in my original post, I've been programming Fortran for quite a few years and never found a use for <tt>.eqv.</tt> or <tt>.neqv.</tt>. As an aside, Fortran is insensitive to case; I tend to use uppercase for Fortran keywords and lowercase for everything else.</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-494652">
<hr><p>
Information about American English usage [http://wsu.edu/~brians/errors/index.html|here] and [http://andromeda.rutgers.edu/~jlynch/Writing/|here]. Floating point issues? Please read [http://docs.sun.com/source/806-3568/ncg_goldberg.html| this ] before posting. — emc</p>
</div></div>
813561
813570