# 'big square root' for BigDecimal

Discussion in 'Java' started by Jeremy Watts, May 26, 2005.

1. ### Jeremy WattsGuest

hi,

is there a 'big square root' feature to find square roots of BigDecimal
numbers?

thanks

Jeremy Watts, May 26, 2005

2. ### RolandGuest

On 26-5-2005 14:29, Jeremy Watts wrote:

> hi,
>
> is there a 'big square root' feature to find square roots of BigDecimal
> numbers?
>
>
> thanks
>
>

Since BigDecimal doesn't seem to provide a sqrt method (neither
pow(0.5)), you'll have to implement it yourself
<http://en.wikipedia.org/wiki/Square_root#Computing_square_roots>
or use Google to find an implementation
--
Regards,

Roland de Ruiter
___ ___
/__/ w_/ /__/
/ \ /_/ / \

Roland, May 26, 2005

3. ### Guest

Are you familiar with the Newton-Raphson Method?

, May 26, 2005
4. ### Jeremy WattsGuest

<> wrote in message
news:...
> Are you familiar with the Newton-Raphson Method?

yes its not the implementation thats a problem - just didnt want to waste
effort writing a routine, if indeed a method did exist.

and yes i am familiar with newton-raphson and is indeed the method i intend
to use

thanks
>

Jeremy Watts, May 26, 2005
5. ### Boudewijn DijkstraGuest

"Jeremy Watts" <> schreef in bericht
news:3Eple.38\$...
>
> <> wrote in message
> news:...
>> Are you familiar with the Newton-Raphson Method?

>
> yes its not the implementation thats a problem - just didnt want to waste
> effort writing a routine, if indeed a method did exist.
>
> and yes i am familiar with newton-raphson and is indeed the method i intend
> to use

In that case you already realised that the result of the doubleValue() method
is an excellent starting guess for the algorithm.

Boudewijn Dijkstra, May 26, 2005