File: bug-libc1.cc

package info (click to toggle)
egcs 1.1.2-0slink2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 80,844 kB
  • ctags: 90,426
  • sloc: ansic: 675,911; cpp: 103,606; sh: 26,374; pascal: 22,878; yacc: 13,856; asm: 10,896; makefile: 8,137; lisp: 7,252; exp: 3,490; fortran: 1,519; sed: 587; objc: 482; awk: 223; csh: 106; ml: 94; perl: 18
file content (10 lines) | stat: -rw-r--r-- 227 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#include <iostream.h>
#include <cmath>
int
main (void)
{
  cout << "exp(-inf) = " << exp (-1.0/0.0) << "\n";
  cout << "exp(inf)  = " << exp ( 1.0/0.0) << "\n";
  cout << "exp(nan)  = " << exp ( 0.0/0.0) << "\n";
  return 0;
}