org.naokishibata.examples
Class FastMathTest

java.lang.Object
  extended by org.naokishibata.examples.FastMathTest

public class FastMathTest
extends java.lang.Object

A class to perform correctness and speed tests for FastMath class


Constructor Summary
FastMathTest()
           
 
Method Summary
static void main(java.lang.String[] args)
          Perform correctness and speed tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastMathTest

public FastMathTest()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Perform correctness and speed tests. The accuracy is checked by comparing results with the standard math library. Note that calculation by the standard math library also has error, and the reported error is basically 1 + the calculation error by the FastMath methods.

Throws:
java.lang.Exception