diff --git a/numerical_methods/durand_kerner_roots.c b/numerical_methods/durand_kerner_roots.c index 2518e461..fc78c825 100644 --- a/numerical_methods/durand_kerner_roots.c +++ b/numerical_methods/durand_kerner_roots.c @@ -5,9 +5,6 @@ #include #include #include -#ifdef _OPENMP -#include -#endif #define ACCURACY 1e-10 @@ -19,10 +16,6 @@ double complex function(double *coeffs, unsigned int degree, double complex x) double complex out = 0.; unsigned int n; -#ifdef _OPENMP -#pragma omp parallel for reduction(+ \ - : out) -#endif for (n = 0; n < degree; n++) out += coeffs[n] * cpow(x, degree - n - 1);