-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsupport.h
57 lines (47 loc) · 1.44 KB
/
support.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef SUPPORT_H
#define SUPPORT_H
/******************************************
* C++ Support for the Number Systems Package
* Version: 1.0.9
* Author: Douglas Wilhelm Harder
* Date: 2008/03/03
*
* Copyright (c) 2006-2008 by Douglas Wilhelm Harder.
* All rights reserved.
******************************************/
#include <iostream>
#include <cmath>
#include <string>
#include <cstdlib>
template <typename T>
class Support {
public:
static const T POS_INF;
static const T NEG_INF;
static const T NaN;
static const T PI;
static const T PI2;
static const T GAMMA_TAB[171];
static T Gamma( int );
static T sec( T );
static T csc( T );
static T cot( T );
static T sech( T );
static T csch( T );
static T coth( T );
static T sign( T );
static bool is_pos_inf( T );
static bool is_neg_inf( T );
static bool is_pos_zero( T );
static bool is_neg_zero( T );
static bool is_inf( T );
static bool is_nan( T );
static short bigendian;
/******************************************
* IO Stream Functions
******************************************/
static void print_real( T, std::ostream & );
static void print_imaginary( T, const std::string &, std::ostream & );
static void print_imaginary( T, char, std::ostream & );
};
#endif // SUPPORT_H