JDK-4633024 : Augment Java math libraries with methods from C libm and IEEE 754
  • Type: Enhancement
  • Status: Closed
  • Resolution: Duplicate
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Affected Version: 5.0
  • OS: generic
  • CPU: generic
  • Submit Date: 2002-02-05
  • Updated Date: 2003-09-09
  • Resolved Date: 2003-09-09
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
The current Java math libraries (java.lang.Math and java.lang.StrictMath) lack
many methods found in the C math librariy (e.g. hyperbolic transcendental
functions) as well as functions recommended by the IEEE 754/854 floating-point
standards.  Java's math library should be augmented to include these methods.

The list of major math library methods added are

log10
cbrt
hypot
sinh, cosh, tanh
log1p
expm1

Additionally, ulp and signum were added.

Comments
WORK AROUND Use native code to call functions in C's libm; write your own math functions.
2004-06-11

PUBLIC COMMENTS Request to add to the Java math libraries functions in C's libm and IEEE 754 that aren't already included in Java.
2004-06-10

EVALUATION Bug to track future JSR submission. ###@###.### 2002-02-04 Name: jd38982 Date: 02/04/2002 This feature has been added for Tiger release ====================================================================== The preliminary list of methods being considering includes cbrt exp2 expm1 log10 log2 hypot fma erf, erfc gamma, lgamma sinh, cosh, tanh,... Investigation of adding such methods probably doesn't warrant a full jsr. ###@###.### 2002-05-31 Update list of target methods to add is sinh, cosh, tanh, hypot, log1p, expm1, exp2, log2, fma ###@###.### 2003-06-04 The final list of major math library methods added in Tiger is: log10 cbrt hypot sinh, cosh, tanh log1p expm1 Additionally, ulp and signum were added. This bug is being closed as a dup of a bug covering a subset of the methods above. To express interest in more additions to Java's math library, please transfer JDC votes to bug 4919337 "Augment Java math libraries with more methods from C libm and IEEE 754" which will track addition of methods like asinh, acosh, atanh fused mac log2, exp2 ###@###.### 2003-09-08
2003-09-08