/****************************************************************************/ /* (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_ftag = "f3"; char *aat_fname = "r2 = x^2 + y^2;\nm2 = (x^2 - 3*y^2)^2;\nf = x^2*m^2 - r^2 + 1/4"; Float aat_f_flt (Float x, Float y) { ROUND_NEAR; { Float x2 = x*x; Float y2 = y*y; Float r2 = x2 + y2; Float m = x2 - Three * y2; Float m2 = m*m; Float res = x2*m2 - r2 + Quarter; return (res); } } Interval aat_f_ia (Interval x, Interval y) { Interval x2 = ia_sqr(x); Interval y2 = ia_sqr(y); Interval r2 = ia_add(x2, y2); Interval m = ia_sub(x2, ia_scale(y2, Three, One)); Interval m2 = ia_sqr(m); Interval res = ia_shift(ia_sub(ia_mul(x2, m2), r2), Quarter); return (res); } AAP aat_f_aa (AAP x, AAP y) { MemP frame = aa_top(); AAP x2 = aa_sqr(x); AAP y2 = aa_sqr(y); AAP r2 = aa_add(x2, y2); AAP m = aa_sub(x2, aa_scale(y2, Three, One)); AAP m2 = aa_sqr(m); AAP res = aa_shift(aa_sub(aa_mul(x2, m2), r2), Quarter); return (aa_return(frame, res)); } Interval aat_fxd = {-Three, Three}; Interval aat_fyd = {-Three, Three}; int aat_fn = 64;