5 #ifndef XUNI_GUARD_UTILITY_H
6 #define XUNI_GUARD_UTILITY_H 1
18 #define CONSTANT_PI PI
20 #define CONSTANT_PI M_PI
22 #define CONSTANT_PI 3.14159265358979323846264338327950288419716939937510582097
25 struct string_function_t
{
30 struct string_index_t
{
35 func_point_t
string_to_function(const struct string_function_t
*data
,
36 size_t n
, const char *find
);
37 size_t string_to_index(const struct string_index_t
*str
, size_t n
,
40 double degrees_to_radians(double angle
);
41 double radians_to_degrees(double angle
);
43 int binary_insertion_sort(void *data
, size_t n
, void *find
, size_t *pos
,
44 int (*compare
)(void *data
, size_t n
, void *find
));