'big square root' for BigDecimal

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

  1. Jeremy Watts

    Jeremy Watts Guest

    hi,

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


    thanks
     
    Jeremy Watts, May 26, 2005
    #1
    1. Advertising

  2. Jeremy Watts

    Roland Guest

    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
    <http://www.google.com/search?hl=en&q=BigDecimal+%22square+root%22>
    --
    Regards,

    Roland de Ruiter
    ___ ___
    /__/ w_/ /__/
    / \ /_/ / \
     
    Roland, May 26, 2005
    #2
    1. Advertising

  3. Jeremy Watts

    Guest

    Are you familiar with the Newton-Raphson Method?
     
    , May 26, 2005
    #3
  4. Jeremy Watts

    Jeremy Watts Guest

    <> 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
    #4
  5. "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
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,255
  2. Replies:
    3
    Views:
    1,244
  3. Stanimir Stamenkov
    Replies:
    4
    Views:
    2,613
    Stanimir Stamenkov
    Jul 18, 2008
  4. Shaguf
    Replies:
    0
    Views:
    523
    Shaguf
    Dec 24, 2008
  5. Shaguf
    Replies:
    0
    Views:
    481
    Shaguf
    Dec 26, 2008
Loading...

Share This Page