#if !defined(MAIN_H_) #define MAIN_H_ #include #define INFTY 100 struct pngdata { int width, height; png_bytep *rows; }; struct z { double re, im; }; struct roots { struct z z[3]; int n; }; void newton(struct pngdata *pd); unsigned long newt_iter(struct z z, struct z* p, struct roots *roots, double eps); int close_to(struct z a, struct z b, double eps); #endif /* !defined(MAIN_H_) */