-
Notifications
You must be signed in to change notification settings - Fork 0
/
math_unit.h
58 lines (40 loc) · 1.25 KB
/
math_unit.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
57
58
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 - 2020, 2022 TheVice
*
*/
#ifndef _MATH_UNIT_H_
#define _MATH_UNIT_H_
#include <stdint.h>
static const double math_E = 2.7182818284590451;
static const double math_PI = 3.1415926535897931;
double math_abs(double value);
double math_ceiling(double value);
double math_floor(double value);
double math_round(double value);
double math_acos(double value);
double math_asin(double value);
double math_atan(double value);
double math_atan2(double x_value, double y_value);
double math_cos(double value);
double math_cosh(double value);
double math_exp(double value);
double math_log(double value);
double math_log10(double value);
double math_max(double value1, double value2);
double math_min(double value1, double value2);
double math_pow(double base_value, double exponent_value);
int8_t math_sign(double value);
double math_sin(double value);
double math_sinh(double value);
double math_sqrt(double value);
double math_tan(double value);
double math_tanh(double value);
double math_cot(double value);
double math_coth(double value);
int64_t math_truncate(double value);
double math_degrees(double r);
double math_radians(double d);
uint8_t math_double_near(double value1, double value2, double epsilon);
#endif