/****************************************************************************/ /* (C) Copyright 1993 Universidade Estadual de Campinas (UNICAMP) */ /* Campinas, SP, Brazil */ /* */ /* This file can be freely distributed, modified, and used for any */ /* non-commercial purpose, provided that this copyright and authorship */ /* notice be included in any copy or derived version of this file. */ /* */ /* DISCLAIMER: This software is offered ``as is'', without any guarantee */ /* as to fitness for any particular purpose. Neither the copyright */ /* holder nor the authors or their employers can be held responsible for */ /* any damages that may result from its use. */ /****************************************************************************/ /* AA test: plotting zeros of a 2-argument function by sampling on a uniform grid. */ #ifndef AAGRID_H #define AAGRID_H #include #include #include #include void aagrid_plots( char *fileprefix, int epsformat, char *title, Float f (Float x, Float y), Interval fv (Interval x, Interval y), AAP ff (AAP x, AAP y), 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