fix polynomial to accept any exponents
This commit is contained in:
@@ -61,7 +61,6 @@ static void print_context_terms()
|
||||
{
|
||||
int i;
|
||||
|
||||
ft_putchar_fd('\n', STDERR_FILENO);
|
||||
i = 0;
|
||||
while (terms_g_err[i].position != TERM_END)
|
||||
{
|
||||
@@ -97,9 +96,16 @@ static void print_context_terms()
|
||||
|
||||
static void print_context_polynom()
|
||||
{
|
||||
dprintf(STDERR_FILENO, "\npolynom[a]: %10g\n", polynom_g_err->a);
|
||||
dprintf(STDERR_FILENO, "polynom[b]: %10g\n", polynom_g_err->b);
|
||||
dprintf(STDERR_FILENO, "polynom[c]: %10g\n", polynom_g_err->c);
|
||||
int i;
|
||||
|
||||
ft_putnbr_fd(polynom_len_g_err, STDERR_FILENO);
|
||||
ft_putchar_fd('\n', STDERR_FILENO);
|
||||
i = 0;
|
||||
while (i < polynom_len_g_err)
|
||||
{
|
||||
dprintf(STDERR_FILENO, "polynom[%i]: %10g\n", i, polynom_g_err[i]);
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
void print_state()
|
||||
|
||||
Reference in New Issue
Block a user