2 #include <gsl/gsl_poly.h>
8 /* coefficients of P(x) = -1 + x^5 */
9 double a[6] = { -1, 0, 0, 0, 0, 1 };
12 gsl_poly_complex_workspace * w
13 = gsl_poly_complex_workspace_alloc (6);
15 gsl_poly_complex_solve (a, 6, w, z);
17 gsl_poly_complex_workspace_free (w);
19 for (i = 0; i < 5; i++)
21 printf ("z%d = %+.18f %+.18f\n",