Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2005

Tip: Looking for answers? Try searching our database.

'big square root' for BigDecimal

Thread view: 
Jeremy Watts - 26 May 2005 13:29 GMT
hi,

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

thanks
Roland - 26 May 2005 14:06 GMT
> 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>
Signature

Regards,

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

klynn47@comcast.net - 26 May 2005 16:00 GMT
Are you familiar with the Newton-Raphson Method?
Jeremy Watts - 26 May 2005 20:41 GMT
> 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
Boudewijn Dijkstra - 26 May 2005 22:01 GMT
>> Are you familiar with the Newton-Raphson Method?
>
[quoted text clipped - 3 lines]
> 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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.