File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Math.sqrt ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Math.sqrt ? " Watch "Math.sqrt ? " New topic
Author

Math.sqrt ?

Adam Polak
Greenhorn

Joined: Oct 28, 2002
Posts: 23
Could someone tell me what the sqrt methode from the Math library is for?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12
static double sqrt(double a)
Returns the correctly rounded positive square root of a double value. API for Math class


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Adam Polak
Greenhorn

Joined: Oct 28, 2002
Posts: 23
Could you please explain more easily?
Jack Coleman
Ranch Hand

Joined: Apr 08, 2002
Posts: 32
Do you know what a square root is?
If not, here is a definition:
A divisor of a quantity that when squared gives the quantity. For example, the square roots of 25 are 5 and -5 because 5 � 5 = 25 and (-5) � (-5) = 25.


Tell me, Mr. Anderson, what good is a phone call when you are unable to speak?
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12

You can substitute a different number for 25.0 to see the square root of another number. The square root of 9 is 3. The square root of 100 is 10.
Robbie shi
Greenhorn

Joined: Jan 05, 2003
Posts: 28
Static double sqrt(double)
output the square root
---
Robbies
-----------------------------
1.java IDE tool : JawaBeginer
2.Java Jar tool : JavaJar
http://www.pivotonic.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Math.sqrt ?