8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 4900206 27 * @summary Test worst case behavior of exp, log, sin, cos, etc. 28 * @build Tests 29 * @build WorstCaseTests 30 * @run main WorstCaseTests 31 * @run main/othervm -Xcomp WorstCaseTests 32 * @author Joseph D. Darcy 33 */ 34 35 /** 36 * Use "Table Maker's Dilemma" results from Jean-Michel Muller and 37 * Vincent Lefèvre, to test the math library. See 38 * http://perso.ens-lyon.fr/jean-michel.muller/TMD.html for original 39 * test vectors from 2000 and see 40 * http://perso.ens-lyon.fr/jean-michel.muller/TMDworstcases.pdf with 41 * additional test vectors from 2003. The latter link also contains 42 * some information about the methodology used to produce the test 43 * vectors. 44 * 45 * Most of the Java math library methods tested here have a 1-ulp 46 * error bound from their specifications. This implies the returned 47 * value must be one of the two representable floating-point numbers 48 * bracketing the exact result. The expected value in the test 49 * vectors below is the truncation of the exact value. Therefore, the | 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* 25 * @test 26 * @bug 4900206 27 * @summary Test worst case behavior of exp, log, sin, cos, etc. 28 * @library /lib/testlibrary 29 * @build jdk.testlibrary.DoubleUtils jdk.testlibrary.FloatUtils 30 * @run main WorstCaseTests 31 * @run main/othervm -Xcomp WorstCaseTests 32 * @author Joseph D. Darcy 33 */ 34 35 /** 36 * Use "Table Maker's Dilemma" results from Jean-Michel Muller and 37 * Vincent Lefèvre, to test the math library. See 38 * http://perso.ens-lyon.fr/jean-michel.muller/TMD.html for original 39 * test vectors from 2000 and see 40 * http://perso.ens-lyon.fr/jean-michel.muller/TMDworstcases.pdf with 41 * additional test vectors from 2003. The latter link also contains 42 * some information about the methodology used to produce the test 43 * vectors. 44 * 45 * Most of the Java math library methods tested here have a 1-ulp 46 * error bound from their specifications. This implies the returned 47 * value must be one of the two representable floating-point numbers 48 * bracketing the exact result. The expected value in the test 49 * vectors below is the truncation of the exact value. Therefore, the |