IBM Israel
Skip to main content
 
Search IBM Research
   Home  |  Products & services  |  Support & downloads  |  My account
Select a Country Select a country
IBM Research Home IBM Research Home
IBM Haifa Labs Homepage IBM Haifa Labs Home

CRML

Business Integration
Project Homepage
 ·Contact Information
Feedback


CRML
  Correctly Rounding Math Library for Java

The objective of the project was to produce a library of twelve fast math function subroutines, written in the (standard) C programming language. Its main feature is the rounding mode of the functions. Each of the routines produces results that are always exactly equal to the accurate, infinite precision values of the corresponding functions, rounded to the nearest/even machine number. The importance of this is that all routines written for the same function, with this standard, are bit by bit compatible, even if the details of the algorithms differ. This enables the user to achieve, in a most natural way, the Java objective of 'develop once and run everywhere'. The routines were produced for the IEEE 754 standard 'double' format, assuming round to the nearest rounding mode for the 'double' data type. The library is portable (provided the arithmetic and 'double' format are right!) and was tested on IBM RS/6000, IBM PC (Pentium), IBM S/390 with the binary floating point feature, and SUN SPARC computers.

The functions included are: acos, asin, atan, atan2, cos, exp, log, pow, remainder, sin, sqrt, tan. The package can be downloaded for trial from the IBM alphaWorks web site.

 

  About IBM  |  Privacy  |  Terms of use  |  Contact