Method sqrt(double a)
Return type: double
Member of:
java.lang.Math
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
(Math.sqrt(w * w + h * h) / Math.sqrt(2)) / 100.0);
2
return new BigDecimal(Math.sqrt(val.doubleValue()));
3
return (float)Math.sqrt((float)(xdiff * xdiff + ydiff * ydiff));
4
public static final int MAX = (int)Math.sqrt(Integer.MAX_VALUE) - 1;
5
static final float DSQRT2PI = (float)(Math.sqrt(2*Math.PI)*3.0/4.0);
6
_nCols = (int) Math.sqrt(cs.size());
7
double factor = shiftDist / Math.sqrt(xDiff * xDiff + yDiff * yDiff);
8
m = Math.sqrt(A1 * A1 + B1 * B1);
9
float scale = (float)Math.sqrt(Math.abs(transform.getDeterminant()));
10
double r = Math.sqrt((x-center)*(x-center) + (y-center)*(y-center));
11
assertTrue(Math.abs(xbar)/(s/Math.sqrt(n))< 3.29);
12
int extent = (int) Math.ceil(Math.sqrt(rect.width * rect.width + rect.height * rect.height));
13
deviation = Math.sqrt( (sumOfSquares / count) - (mean * mean) );
14
sdDataV[h]= (float)Math.sqrt((double)mnDiff);
15
double vectorLength = Math.sqrt(squaredWeightSum);
16
nd = (float)Math.sqrt( nx*nx + ny*ny + 1 );
17
eoqAmount = Math.sqrt((2.0 * Math.max(0.0, this.fixedOrderCost) * forecastedDemand)
18
L[j][j] = Math.sqrt(Math.max(d, 0.0));
19
int limit = (int)Math.sqrt(crossedOut.length);
20
int lSqrt = (int)Math.sqrt(lCount);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.