*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> f90/eqv (3)              
Title
Content
Arch
Section
 

Contents


EQV(3M)						       Last changed: 1-6-98

NAME    [Toc]    [Back]

     EQV - Computes logical equivalence

SYNOPSIS    [Toc]    [Back]

     EQV ([I=]i,[J=]j)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Compiler extension	to Fortran 90

DESCRIPTION    [Toc]    [Back]

     EQV is an elemental function for the CF90 compiler.

     arg, i, and j can be of type Boolean, integer, real, logical, or Cray
     pointer.

NOTES    [Toc]    [Back]

     EQV is an outmoded	routine	for the	CF90 compiler.	Refer to the
     Fortran Language Reference	Manual,	Volume 3, publication SR-3905, for
     information about outmoded	features and their preferred standard
     alternatives.

     The name of this intrinsic	cannot be passed as an argument.

CAUTIONS    [Toc]    [Back]

     Unexpected	results	can occur when Boolean functions are declared
     external and then used with logical arguments.  The external Boolean
     functions always treat their arguments as type Boolean and	return a
     Boolean result.  When given two arguments of type logical,	EQV
     computes a	logical	equivalence and	returns	a logical result on UNICOS
     and UNICOS/mk systems.  On	IRIX systems, they return an integer
     result.

RETURN VALUES    [Toc]    [Back]

     When given	two arguments of type Boolean, real, integer, or pointer,
     EQV computes a bit-wise logical equivalence and returns a Boolean
     result.  No type conversion occurs.

     The following tables show both the	logical	equivalence and	bit-wise
     logical equivalence:

     -----------------------------------------------------------------
	Logical	       Logical		(Logical Variable 1) EQV
      Variable 1     Variable 2		  (Logical Variable 2)
     -----------------------------------------------------------------
	   T		  T			    T
	   T		  F			    F
	   F		  T			    F
	   F		  F			    T
     -----------------------------------------------------------------


     --------------------------------------------------------------
	Bit of	      Bit of	       (Bit of Variable	1) EQV
      Variable 1    Variable 2		 (Bit of Variable 2)
     --------------------------------------------------------------
	  1		1			 1
	  1		0			 0
	  0		1			 0
	  0		0			 1
     --------------------------------------------------------------

EXAMPLES    [Toc]    [Back]

     The following section of Fortran code shows the EQV function used with
     two arguments of type logical:

	  LOGICAL L1, L2, L3
	  ...
	  L3 = EQV(L1,L2)

     The following section of Fortran code shows the EQV function used with
     two arguments of type integer.  The bit patterns of the arguments and
     result are	also given.  For clarity, only the rightmost 8 bits are
     shown.

INTEGER	I1, I2,	I3
I1 = 12
I2 = 10
...
I3 = EQV(I1,I2)

       -------------------------------	   -------------------------------
      |	0 | 0 |	0 | 0 |	1 | 1 |	0 | 0 |	  | 0 |	0 | 0 |	0 | 1 |	0 | 1 |	0 |
       -------------------------------	   -------------------------------
		    I1				    I2

		     -------------------------------
		    | 1	| 1 | 1	| 1 | 1	| 0 | 0	| 1 |
		     -------------------------------
				     I3

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

EQV(3M)						       Last changed: 1-6-98

NAME    [Toc]    [Back]

     EQV - Computes logical equivalence

SYNOPSIS    [Toc]    [Back]

     EQV ([I=]i,[J=]j)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Compiler extension	to Fortran 90

DESCRIPTION    [Toc]    [Back]

     EQV is an elemental function for the CF90 compiler.

     arg, i, and j can be of type Boolean, integer, real, logical, or Cray
     pointer.

NOTES    [Toc]    [Back]

     EQV is an outmoded	routine	for the	CF90 compiler.	Refer to the
     Fortran Language Reference	Manual,	Volume 3, publication SR-3905, for
     information about outmoded	features and their preferred standard
     alternatives.

     The name of this intrinsic	cannot be passed as an argument.

CAUTIONS    [Toc]    [Back]

     Unexpected	results	can occur when Boolean functions are declared
     external and then used with logical arguments.  The external Boolean
     functions always treat their arguments as type Boolean and	return a
     Boolean result.  When given two arguments of type logical,	EQV
     computes a	logical	equivalence and	returns	a logical result on UNICOS
     and UNICOS/mk systems.  On	IRIX systems, they return an integer
     result.

RETURN VALUES    [Toc]    [Back]

     When given	two arguments of type Boolean, real, integer, or pointer,
     EQV computes a bit-wise logical equivalence and returns a Boolean
     result.  No type conversion occurs.

     The following tables show both the	logical	equivalence and	bit-wise
     logical equivalence:

     -----------------------------------------------------------------
	Logical	       Logical		(Logical Variable 1) EQV
      Variable 1     Variable 2		  (Logical Variable 2)
     -----------------------------------------------------------------
	   T		  T			    T
	   T		  F			    F
	   F		  T			    F
	   F		  F			    T
     -----------------------------------------------------------------


     --------------------------------------------------------------
	Bit of	      Bit of	       (Bit of Variable	1) EQV
      Variable 1    Variable 2		 (Bit of Variable 2)
     --------------------------------------------------------------
	  1		1			 1
	  1		0			 0
	  0		1			 0
	  0		0			 1
     --------------------------------------------------------------

EXAMPLES    [Toc]    [Back]

     The following section of Fortran code shows the EQV function used with
     two arguments of type logical:

	  LOGICAL L1, L2, L3
	  ...
	  L3 = EQV(L1,L2)

     The following section of Fortran code shows the EQV function used with
     two arguments of type integer.  The bit patterns of the arguments and
     result are	also given.  For clarity, only the rightmost 8 bits are
     shown.

INTEGER	I1, I2,	I3
I1 = 12
I2 = 10
...
I3 = EQV(I1,I2)

       -------------------------------	   -------------------------------
      |	0 | 0 |	0 | 0 |	1 | 1 |	0 | 0 |	  | 0 |	0 | 0 |	0 | 1 |	0 | 1 |	0 |
       -------------------------------	   -------------------------------
		    I1				    I2

		     -------------------------------
		    | 1	| 1 | 1	| 1 | 1	| 0 | 0	| 1 |
		     -------------------------------
				     I3

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

[ Back ]
 Similar pages
Name OS Title
neqv IRIX Computes logical difference
lvsplit HP-UX split mirrored LVM logical volume into two logical volumes
lvmerge HP-UX merge two LVM logical volumes into one logical volume
cot IRIX Computes cotangent
compl IRIX Computes complement
poppar IRIX Computes bit population parity
div Tru64 Computes absolute value and division of integers
abs Tru64 Computes absolute value and division of integers
labs Tru64 Computes absolute value and division of integers
ldiv Tru64 Computes absolute value and division of integers
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service