/* Plotting graph of a 1-argument function with affine arithmetic. */ /* Last edited on 2001-10-08 02:05:24 by stolfi */ #ifndef allgraphs_H #define allgraphs_H #include #include #include #include void allgraphs_plot( char *fileprefix, int epsformat, char *title, Float f (Float x), Interval fv (Interval x), AAP ff (AAP x), Float xmin, Float xmax, Float ymin, Float ymax, int n, int m ); /* Generates PostScript file(s) with plots of the graph of f(x), on the interval $[xmin .. xmax]$ computed with floating point, ordinary interval arithmetic and with affine arithmetic. 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. The functions $fv$ and $ff$ should be IA and AA versions of $f$. $xd$ and $yd$ are the plot coordinate ranges. $n$ is the number of intervals into which $xd$ is to be divided. $m$ is the number of steps for the floating-point graph of $f$. */ #endif