>>622
#include <stdio.h>
#include <complex.h>
#define Complex complex<double>

Complex f(Complex z){ z=z*z*z-z-(Complex)1;return z;}
Complex h(Complex z){z=z-f(z)/((Complex)3*z*z-(Complex)1);return z;}

main(){
Complex z , I(0,1),w[9];
int n,i,k=0;
for(n=0;n<1000;n++){
z=(Complex)(n/100)*exp(I*M_PI* (Complex)((n+0.0)/100));
for(i=0;i<200;i++)z=h(z);
if(abs(f(z))<0.001)for(i=0;i<k;i++)if(abs(z-w[i])<0.01)break;
if(i==k){w[k]=z;k++;printf("real=%f\timag=%f\n", real(z),imag(z));}}}