From 8e2ad2e1ef76dba8ed99db32181f4a2fd2ea4151 Mon Sep 17 00:00:00 2001 From: Krishna Vedala Date: Thu, 9 Apr 2020 00:22:13 -0400 Subject: [PATCH] fixed 0^th iter log print --- numerical_methods/durand_kerner_roots.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numerical_methods/durand_kerner_roots.c b/numerical_methods/durand_kerner_roots.c index 8ab7682a..2518e461 100644 --- a/numerical_methods/durand_kerner_roots.c +++ b/numerical_methods/durand_kerner_roots.c @@ -115,7 +115,7 @@ int main(int argc, char **argv) #if defined(DEBUG) || !defined(NDEBUG) fprintf(log_file, "avg. correction"); - fprintf(log_file, "0,"); + fprintf(log_file, "\n0,"); for (n = 0; n < degree - 1; n++) fprintf(log_file, "%s,", complex_str(s0[n])); #endif