Metropoli BBS
VIEWER: nand.c MODE: TEXT (ASCII)
/*Copyright (C) 1992, 1996 by Thomas Glen Smith.  All Rights Reserved.*/
/* nand APL2 V1.0.0 ****************************************************
* Returns 1 or 0 depending on the logical NAND of left and rite.       *
***********************************************************************/
#define INCLUDES 0
#include "includes.h"
int nand(left,rite)
double left,rite;
{
	extern double fuzz;
	int ileft,irite;

	ileft = (!((left >= -fuzz) & (left <= fuzz)));
	irite = (!((rite >= -fuzz) & (rite <= fuzz)));
	return(!(ileft & irite));
}
[ RETURN TO DIRECTORY ]