/****************************************************************************/ /* (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. */ /****************************************************************************/ /* Plotting graph of a 1-argument function with interval and affine arithmetic. */ #ifndef AAGRAPH_H #define AAGRAPH_H #include #include #include #include void aagraph_plots( char *fileprefix, int epsformat, char *title, Float f (Float x), Interval fv (Interval x), AAP ff (AAP x), Interval xd, Interval yd, int n, int m ); /* Generates PostScript file(s) with plots of the graph of f(x), computed with 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 plotting the "true" graph of $f$. */ #endif