JDK-4900189 : Refine spec requirements for tanh, expm1
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-08-01
  • Updated: 2017-05-16
  • Resolved: 2003-08-30
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
Relates :  
Relates :  
Description
The math functions tanh and expm1 approach limit values for suffiently large arguments.  The specifications of those functions should impose more explic it constraints on how the limits may be approached as well as bounding the functions' results to stay within the true functions' bounds.

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

SUGGESTED FIX src/share/classes/java/lang>sccs sccsdiff -r1.61 -r1.62 Math.java ------- Math.java ------- 54,55c54,55 < * important. Therefore, methods with more than 0.5 ulp errors are < * required to be <i>semi-monotonic</i>: whenever the mathematical --- > * important. Therefore, most methods with more than 0.5 ulp errors > * are required to be <i>semi-monotonic</i>: whenever the mathematical 1105c1105,1109 < * result. --- > * result. The result of <code>tanh</code> for any finite input > * must have an absolute value less than or equal to 1. Note that > * once the exact result of tanh is within 1/2 of an ulp of the > * limit value of &plusmn;1, correctly signed > * &plusmn;<code>1.0</code> should be returned. 1165c1169,1174 < * result. Results must be semi-monotonic. --- > * result. Results must be semi-monotonic. The result of > * <code>expm1</code> for any finite input must be greater than or > * equal to <code>-1.0</code>. Note that once the exact result of > * <i>e</i><sup><code>x</code></sup>&nbsp;-&nbsp;1 is within 1/2 > * ulp of the limit value -1, <code>-1.0</code> should be > * returned. ###@###.### 2003-08-15
15-08-2003

EVALUATION A fine idea. ###@###.### 2003-08-01
01-08-2003