/* Plots of zeros of a 2-ary function with uniform grid. */ /* Last edited on 2020-10-01 20:45:23 by jstolfi */ #ifndef zf2_grid_H #define zf2_grid_H #include #include #include #include #include void zf2_grid_plots( char *fileprefix, int epsformat, char *title, eval_fp_t *eval_fp, /* Evaluates the function in floating-point. */ eval_ia_t *eval_ia, /* Evaluates the function with standard IA. */ eval_aa_t *eval_aa, /* Evaluates the function with affine arith. */ Interval xd, Interval yd, int n, int m ); /* Generates PostScript file(s) with plots of the curve f(x,y)=0, within the rectangle {xd} by {yd}. If {epsformat} is 1 (true), writes two separate Encapsulated Postscript files (-ia.ps, -aa.ps), without "showpage" commands or captions. If {epsformat} is 0 (false), writes a single plain Postscript file (.ps), with one graph per page, with captions. {fv} and {ff} should be Interval and AA versions of {f}. {n} is the grid size used for testing {fv} and {ff}. {m} is the grid size used for plotting the "true" zeros of {f}. */ #endif