> Hi,
>
[quoted text clipped - 6 lines]
>
> Does anyone know how to handle it?
bd1.pow(bd2.intValue()) looks like a good starting point.
If bd2 has a fractional part, you'll need to work harder --
perhaps Math.pow(bd1.doubleValue(), bd2.doubleValue()) would
be of use, followed by conversion from double to BigDecimal.
Seems like a strange thing to want to do, though. I hope
you've got lots of memory ...

Signature
Eric Sosman
esosman@acm-dot-org.invalid
Patricia Shanahan - 05 Feb 2007 14:32 GMT
>> Hi,
>>
[quoted text clipped - 14 lines]
> Seems like a strange thing to want to do, though. I hope
> you've got lots of memory ...
Even if the double approach does not give enough accuracy, it might be a
good starting point for an iterative improvement algorithm such as
Newton-Raphson.
However, it definitely needs to be dome carefully, with attention to
trade-offs between accuracy and memory.
Patricia
czarnysfetr@gmail.com - 05 Feb 2007 14:49 GMT
Thanks a lot, problem vanished :-)