Jafama

A (Strict)FastMath class with 1e-15ish accuracy.

5.0 Stars (4)
2 Downloads (This Week)
Last Update:
Download jafama.jar
Browse All Files

Description

Jafama (Java Fast Math) consists of fast - but not sloppy - counterparts of java.lang.Math treatments, plus additional ones.

They are usually about 2-4 (up to 15) times faster, with about 1e-15 accuracy, and handle special cases (NaN, etc.).

Since version 2.1, a StrictFastMath class is also provided. It is a strictfp version of FastMath (and not a fast version of StrictMath): for a same version of this library, its methods always return a same result for same arguments, which might not be the case for FastMath depending on JIT or other JVM optimizations.

Requires Java 5 or later.

This code, possibly in an older or newer version, is also available as part of a larger library, at http://code.google.com/p/jodk.

***ad*** My other and recent projects:
https://sourceforge.net/projects/jafaran/
https://sourceforge.net/projects/jcycles/

Jafama Web Site

Categories

Mathematics

License

Apache License V2.0

Update Notifications





User Ratings

★★★★★
★★★★
★★★
★★
4
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 0 / 5
Write a Review

User Reviews

  • kmccandl
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Got a factor of 2 for some cases on newer Intel chips. Thanks!

    Posted 04/01/2014
  • jorgegomes
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Great library. I was able to achieve huge performance improvements by using the provided sqrt and trigonometric functions, instead of those provided in the JDK's Math.

    Posted 11/25/2013
  • nathanfernandez
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Jafama is great! Thanks.

    Posted 06/06/2013
  • tobijdc
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Great Library, really helped me speed up my Software!

    Posted 10/29/2011
Read more reviews

Additional Project Details

Intended Audience

Developers

Programming Language

Java

Registered

2009-07-20
Screenshots can attract more users to your project.
Features can attract more users to your project.

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.