JDK-4851625 : Add hyperbolic transcendental functions (sinh, cosh, tanh) to Java math library
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-04-21
  • Updated: 2017-05-16
  • Resolved: 2003-08-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Java's math libraries lack the transcendental elementary functions sinh, cosh, and tanh; these should be added to the math library.

The listed methods are part of Tiger-feature 4633024.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b14
14-06-2004

SUGGESTED FIX src/share/native/java/lang/fdlibm/include>sccs sccsdiff -r1.10 -r1.11 jfdlibm.h ------- jfdlibm.h ------- 41a42,44 > #define hypot jhypot > #define log1p jlog1p > #define expm1 jexpm1 75a79,80 > #define __ieee754_log1p __j__ieee754_log1p > #define __ieee754_expm1 __j__ieee754_expm1 src/share/native/java/lang>sccs sccsdiff -r1.53 -r1.54 StrictMath.c ------- StrictMath.c ------- 109a110,148 > > JNIEXPORT jdouble JNICALL > Java_java_lang_StrictMath_cosh(JNIEnv *env, jclass unused, jdouble d) > { > return (jdouble) jcosh((double)d); > } > > JNIEXPORT jdouble JNICALL > Java_java_lang_StrictMath_sinh(JNIEnv *env, jclass unused, jdouble d) > { > return (jdouble) jsinh((double)d); > } > > JNIEXPORT jdouble JNICALL > Java_java_lang_StrictMath_tanh(JNIEnv *env, jclass unused, jdouble d) > { > return (jdouble) jtanh((double)d); > } > > JNIEXPORT jdouble JNICALL > Java_java_lang_StrictMath_hypot(JNIEnv *env, jclass unused, jdouble x, jdouble y) > { > return (jdouble) jhypot((double)x, (double)y); > } > > > > JNIEXPORT jdouble JNICALL > Java_java_lang_StrictMath_log1p(JNIEnv *env, jclass unused, jdouble d) > { > return (jdouble) jlog1p((double)d); > } > > JNIEXPORT jdouble JNICALL > Java_java_lang_StrictMath_expm1(JNIEnv *env, jclass unused, jdouble d) > { > return (jdouble) jexpm1((double)d); > } > make/java/java>sccs sccsdiff -r1.53 -r1.54 mapfile-vers ------- mapfile-vers ------- 147a148,153 > Java_java_lang_StrictMath_cosh; > Java_java_lang_StrictMath_sinh; > Java_java_lang_StrictMath_tanh; > Java_java_lang_StrictMath_hypot; > Java_java_lang_StrictMath_log1p; > Java_java_lang_StrictMath_expm1; Changes java.lang.Math and java.lang.StrictMath are adding JavaDoc for the methods and Math forwarding to StrictMath forwarding to the native fdlibm implementation. ###@###.### 2003-07-23
23-07-2003

EVALUATION A fine idea. ###@###.### 2003-04-21
21-04-2003