head	1.3;
access
	monica
	thoth;
symbols;
locks; strict;
comment	@// @;


1.3
date	94.10.25.22.07.37;	author monica;	state Exp;
branches;
next	1.2;

1.2
date	94.08.24.00.30.59;	author monica;	state Exp;
branches;
next	1.1;

1.1
date	94.02.18.19.04.21;	author thoth;	state Exp;
branches;
next	;


desc
@test of mathematical properties of IEEE infinity
@


1.3
log
@*** empty log message ***
@
text
@// Emacs -*- C++ -*-
static char test118_rcsid[] = "$Id: test118.c,v 1.2 1994/08/24 00:30:59 monica Exp monica $";

//
// test of mathematical properties of IEEE infinity
//

//
// $Log: test118.c,v $
// Revision 1.2  1994/08/24  00:30:59  monica
// int main & exit(0)
//
//Revision 1.1  1994/02/18  19:04:21  thoth
//Initial revision
//

#include	<iostream.h>
#include  <math.h>

#define	TEST(expr)	cout << #expr " = " << ( expr) << endl

int main()
{
  float	infty = infinity();
  TEST(infty);
  TEST(infty*0);
  TEST(infty*3);
  TEST(infty*-3);
  TEST(infty >0);
  TEST(infty < 0);
  TEST(-infty >0);
  TEST(-infty < 0);
  TEST(infty*0 >0);
  TEST(infty*0 < 0);
  TEST(4-infty);
  TEST(4+infty);

  return 0;
}




@


1.2
log
@int main & exit(0)
@
text
@d2 1
a2 1
static char test118_rcsid[] = "$Id: test118.c,v 1.1 1994/02/18 19:04:21 thoth Exp monica $";
d10 3
d38 1
a38 1
  exit(0);
d40 4
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
static char test118_rcsid[] = "$Id: test105.c,v 1.1 93/03/10 13:57:00 thoth Exp $";
d9 4
a12 1
// $Log$
d19 1
a19 1
main()
d34 2
@
