aspose file tools
The moose likes Beginning Java and the fly likes Square Root of BigInteger Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Square Root of BigInteger" Watch "Square Root of BigInteger" New topic
Author

Square Root of BigInteger

Justin Porter
Ranch Hand

Joined: Nov 20, 2004
Posts: 34
Does anyone know how I can get the square root of a BigInteger? I tried this:

It didn't like that. It said that Math.pow cannot be applied to doubles!
Any help would be appreciated, sorry for asking so many questions!


Want a free iPod, digital camera, or $300 cash? Completely legit offer at <a href="http://www.geocities.com/pricklymustard/freestuff.html" target="_blank" rel="nofollow">http://www.geocities.com/pricklymustard/freestuff.html</a> . I am looking for referrals which is why I need YOU!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24057
    
  13

See here.


[Jess in Action][AskingGoodQuestions]
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

I was just about to post the same link, but Ernest beat me to it.

Incidentally, since you're working with cryptography, you might be interested in the nextProbablePrime() method in BigInteger. This is new with Java 1.5.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Square Root of BigInteger
 
Similar Threads
RMI and RemoteException
Help with threads/printout.
convert BigInteger to integer
BigInteger(String val, int radix) not working?
Convert Hex To Decimal