print degree ok
This commit is contained in:
@@ -170,7 +170,7 @@ void launch_computorv1(char *input)
|
||||
|
||||
// print before solution
|
||||
print_reduced_form(polynom);
|
||||
// print_degree(polynom, degree);
|
||||
print_degree(polynom, degree);
|
||||
|
||||
// // solve
|
||||
// s_solution solution[1];
|
||||
|
||||
@@ -40,16 +40,13 @@ static void print_reduced_form_beautify(s_polynom *polynom)
|
||||
{
|
||||
coefficient = ft_fabs(polynom[i].coefficient);
|
||||
exponent = polynom[i].exponent;
|
||||
// dprintf(STDERR_FILENO, "\nDEBUG: polynom[0].coefficient: %g, polynom[0].exponent: %i, polynom[0].sign: %c\n", polynom[0].coefficient, polynom[0].exponent, polynom[0].sign); // tmpdebug
|
||||
|
||||
// if term is zero dont output
|
||||
if (coefficient == 0.0)
|
||||
{
|
||||
// ft_dprintf(STDERR_FILENO, "DEBUG: is 0\n"); // tmpdebug
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
// ft_dprintf(STDERR_FILENO, "DEBUG: is not 0\n"); // tmpdebug
|
||||
|
||||
// default_form is not nedded anymore since something will be printed
|
||||
default_form = "";
|
||||
|
||||
Reference in New Issue
Block a user