/****************************************************************************/ /* (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. */ /****************************************************************************/ char *aat_gtag = "gbadmul"; char *aat_gname = "g(x) = (10 + x)*(10 - x)"; Float aat_g_flt (Float x) { ROUND_NEAR; { Float u = 10.0 + x; Float v = 10.0 - x; Float res = u*v/10.0; return (res); } } Interval aat_g_ia (Interval x) { Interval u = ia_shift(x, 10.0); Interval v = ia_shift(ia_neg(x), 10.0); Interval res = ia_scale(ia_mul(u, v), One, 10.0); return (res); } AAP aat_g_aa (AAP x) { MemP frame = aa_top(); AAP u = aa_shift(x, 10.0); AAP v = aa_shift(aa_neg(x), 10.0); AAP res = aa_scale(aa_mul(u, v), One, 10.0); return (aa_return(frame, res)); } Interval aat_gxd = {-22.0, 22.0}; Interval aat_gyd = {-12.0, 16.0}; int aat_gn = 11;