~mingw-w64/mingw-w64/experimental

« back to all changes in this revision

Viewing changes to doug/new_complex/tests/ctanh.c

  • Committer: tpaxatb
  • Date: 2010-06-22 17:54:08 UTC
  • Revision ID: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:experimental:2597
Copy from experimental branch in preparation for trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <math.h>
 
2
#include <complex.h>
 
3
 
 
4
/*
 
5
  ctanh (+0 + i*0) = +0 + i*0
 
6
  ctanh (x + i*inf) = nan + i*nan for finite x
 
7
  ctanh (x + i*nan) = nan + i*nan for finite x
 
8
  ctanh (+inf + i*y) = 1 + i*0*sin(2y) for positive-signed finite y
 
9
  ctanh (+inf + i*inf) = 1 +/- i*0 (unspecified sign of zero for C99)
 
10
  ctanh (+inf + i*nan) = 1 +/- i*0 (unspecified sign of zero for C99)
 
11
  ctanh (nan + i*0) = nan + i*0
 
12
  ctanh (nan + i*y) = nan + i*nan for all nonzero y
 
13
  ctanh (nan + i*nan) = nan + i*nan
 
14
*/
 
15
 
 
16
int main() {
 
17
  return 0;
 
18
}
 
19