add is_nearly_equal_zero

This commit is contained in:
hugogogo
2026-05-14 13:56:44 +02:00
parent 201f2fa0ce
commit 31469af23f
9 changed files with 44 additions and 22 deletions

View File

@@ -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
*/