add is_nearly_equal_zero
This commit is contained in:
@@ -2,13 +2,17 @@
|
||||
#define COMPUTORV1_H
|
||||
|
||||
#include "libft.h"
|
||||
#include <stdio.h> // tmp for printf, for float debug
|
||||
#include <stdio.h> // for printf
|
||||
#include <stdarg.h> // for va_list
|
||||
#include <stdbool.h>
|
||||
#include <errno.h> // for errno
|
||||
#include <string.h> // for strerror
|
||||
|
||||
#include <math.h> // tmp
|
||||
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* MACROS
|
||||
*/
|
||||
|
||||
#define DOUBLE_PRECISION 0.00001
|
||||
|
||||
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* MAIN.C
|
||||
@@ -157,6 +161,12 @@ typedef struct
|
||||
|
||||
void solve(const s_polynom *polynom, s_solution *solution);
|
||||
|
||||
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* UTILS/MATH.C
|
||||
*/
|
||||
|
||||
bool is_nearly_equal_zero(double num);
|
||||
|
||||
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* UTILS/ERRORS.C
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user