answersLogoWhite

0

How do you square root in java?

Updated: 8/11/2023
User Avatar

Natevd95

Lvl 1
12y ago

Best Answer

knioubuhy yig hnm vuigvgh ujhb jhbihjbnihkjlkmmnlk

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

A call to Math.sqrt(n) will return the square root of n as a double.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

Use the method in the math class called sqrt(); Parameters are the number you want square rooted.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you square root in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which math function is used to find the square root of a number using java?

Math.sqrt(number) function is used to find the square root of a number.. try it


How do you write a java program to find the square root of a number?

You can use the Math.sqrt() method.


How do you find out the square root of a number in java?

Use:public static double pow(double a,double b)here b = 0.5


What is the square root of the square root of 2?

The square root of the square root of 2


What is the square root of square root's square root?

The 8th root


How many square miles is Java?

Java squared


Some irrational numbers?

square root of (2 ) square root of (3 ) square root of (5 ) square root of (6 ) square root of (7 ) square root of (8 ) square root of (9 ) square root of (10 ) " e " " pi "


What is Dynamic Initialization in java?

Java allows us to perform 'dynamic initialization' of variables too.What this means is that you can initialize variables using expressions (as will be seen in the example).In the program, we have a int variable 'root' which has an initial defined value of 10. We then create another variable 'square' of the same data-type, which will store the square of root.//This program displays dynamic initialization in javapublicclassExample{publicstaticvoidmain(String args[]){introot=10; //root has a constant value assignedintsquare=root*root; //notice that square has "root*root" assigned to it//if u change the value of root,//the value of square changes accordingly//after each compilation//display the values of square and rootSystem.out.println("Root= " +root + " Square= "+square);}}


Irrational numbers between 2 and 2.5?

There are infinitely many of them. They include square root of (4.41) square root of (4.42) square root of (4.43) square root of (4.44) square root of (4.45) square root of (5.3) square root of (5.762) square root of (6) square root of (6.1) square root of (6.2)


What is the square root of a square that has no root?

It's not a square if it has no root. If a number is a square then, by definition, it MUST have a square root. If it did not it would not be a square.


Square root 2 times square root 3 times square root 8?

square root 2 times square root 3 times square root 8


What is a principal square root?

The principal square root is the non-negative square root.