-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmath_utility.hpp
More file actions
31 lines (27 loc) · 836 Bytes
/
math_utility.hpp
File metadata and controls
31 lines (27 loc) · 836 Bytes
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
#ifndef math_utility_hpp
#define math_utility_hpp
#include <cmath>
namespace csce {
namespace math_utility {
const long double EPS = 1E-9;
bool equals(long double a, long double b);
bool equals(double a, double b);
bool equals(float a, float b);
bool equals(int a, int b);
bool equals(long long int a, long long int b);
bool equals(short a, short b);
bool equals_zero(long double a);
bool equals_zero(double a);
bool equals_zero(float a);
bool equals_zero(int a);
bool equals_zero(long long int a);
bool equals_zero(short a);
bool less_than(long double a, long double b);
bool less_than(double a, double b);
bool less_than(float a, float b);
bool less_than(int a, int b);
bool less_than(long long int a, long long int b);
bool less_than(short a, short b);
}
}
#endif /* math_utility_hpp */