diff --git a/numerical_methods/durand_kerner_roots.cpp b/numerical_methods/durand_kerner_roots.cpp index 42ed474e0..dd746ad7c 100644 --- a/numerical_methods/durand_kerner_roots.cpp +++ b/numerical_methods/durand_kerner_roots.cpp @@ -130,7 +130,7 @@ int main(int argc, char **argv) { for (n = 0; n < degree; n++) { coeffs[n] = strtod(argv[n + 1], nullptr); if (n < degree - 1 && coeffs[n] != 0) - std::cout << "(" << coeffs[n] << ") x^" << degree - n - 1 << " + ,"; + std::cout << "(" << coeffs[n] << ") x^" << degree - n - 1 << " + "; else if (coeffs[n] != 0) std::cout << "(" << coeffs[n] << ") x^" << degree - n - 1 << " = 0\n";