From bbd578d4a15c818b35c5d901433cc72c7baaa2a1 Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Thu, 4 Jun 2020 11:38:34 -0400 Subject: [PATCH] fixed additional comma --- numerical_methods/durand_kerner_roots.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";