improve printer

This commit is contained in:
hugogogo
2026-05-13 23:27:50 +02:00
parent b0e6483a68
commit 7978f0d706
8 changed files with 103 additions and 87 deletions

View File

@@ -138,8 +138,6 @@ typedef struct
double delta_sqrt; // √|Δ|
double first_term; // double (-b / 2a)
double second_term; // double (√|Δ| / 2a)
double solution1; // || first_term + second_term || first_term + i * second_term
double solution2; // (not if DELTA_ZERO) || first_term - second_term || first_term - i * second_term
} s_solution_degree_2;
typedef struct
@@ -172,10 +170,15 @@ const char *term_sign_to_str(e_term_sign sign);
const char *delta_sign_to_str(e_delta_sign sign);
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* UTILS/PRINTER.C
* UTILS/PRINT_DEBUG.C
*/
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);