fix printer reduced form order

This commit is contained in:
hugogogo
2026-05-15 00:16:35 +02:00
parent aa78af4e0f
commit 7e16bb5b6f
7 changed files with 52 additions and 46 deletions

View File

@@ -186,12 +186,26 @@ typedef struct
void solve(const s_polynom *polynom, s_solution *solution);
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* PRINTER_EQUATION.C
*/
void print_reduced_form(s_polynom *polynom, int degree);
void print_degree(s_polynom *polynom, int max_exponent);
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* PRINTER_SOLUTIONS.C
*/
void print_solution(s_solution *solution);
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* UTILS/MATH.C
*/
bool is_nearly_equal(double num, int compare);
bool is_nearly_equal_zero(double num);
const s_polynom *get_term_of_power(const s_polynom *polynom, int power);
bool has_decimal_part(double num);
bool any_has_decimal_part(double *num, size_t len);
int gcd_int(int a, int b);
@@ -221,14 +235,6 @@ const char *radicand_sign_to_str(e_radicand_sign enum_value);
void print_debug(const char *description, ...);
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* UTILS/PRINTER.C
*/
void print_reduced_form(s_polynom *polynom);
void print_degree(s_polynom *polynom, int max_exponent);
void print_solution(s_solution *solution);
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* GLOBALS
*/