JDK-4297957 : Add algebraic and transcendental functions operating on BigDecimal
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.math
  • Affected Version: 1.3.0,1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 1999-12-08
  • Updated: 2017-11-13
  • Resolved: 2006-08-31
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Name: rlT66838			Date: 12/08/99

java version "1.3beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-O)
Java(TM) HotSpot Client VM (build 1.3beta-O, mixed mode)

java.lang.Math should be extended to support (at least) BigInteger, instead of
just intrinsic types.

java.lang.Math support the operations I need (pow(...)), but not on the kind of
numbers I have.

For what I'm doing, I need to take the nth root of an arbitrary-magnitude
positive integer. With the JDK, that means using a BigInteger. However,
java.lang.Math works with intrinsic number types only.

I'm definitely using integers that are too big to represent with the 'long'
(Review ID: 98785) 
###@###.### 10/28/04 01:04 GMT

EVALUATION Given that the main use-cases of BigInteger and BigDecimal are not for scientific kinds of calculations, there is less intrinsic need to provide sin, cos, tan, etc. methods operating on those values. There has also been limited community interest in having such functionality. Closing as "will not fix."

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang

EVALUATION It would make more sense, I think, to add these operations to BigInteger itself. On the face of it, it would appear that all operations we supply in Math for small integers should be applicable to large ones as well. william.maddox@Eng 1999-12-17 The library support for BigInteger and BigDecimal should stay in those classes. JSR13 may add a pow method that takes two BigDecimal arguments and may include a fuller set of other mathematical functions too. Assuming those methods are added to BigDecimal as part of JSR13, this bug will be closed as fixed. ###@###.### 2001-11-01 Jsr13 is not including a generalized pow method or methods for transcendental math functions (sin, cos, tan, etc.). Such methods will have to wait for a future release. ###@###.### 2003-09-08

WORK AROUND Name: rlT66838 Date: 12/08/99 Implement the required operations in my application. ====================================================================== ###@###.### 10/28/04 01:04 GMT