Thousands of examples at your fingertips!
All classes, methods fields etc. are linked to the API documentation.
All members are listed by frequency of use or alphabetically (see left pane).
Links to examples and utility functions/classes are shown below
Class java.lang.Math
[api documentation] [ main menu] Search

Links to examples (only one line shown below for each example):
[add your own example]

1 case ABS: return Math.abs(arg);
2 setBounds(i, Math.pow(10, Math.floor(Math.log(Xmi) / Math.log(10))), Math.pow(10,
3 double result = Math.sqrt(Math.pow((c.ctrlx1-c.x1),2.0)+Math.pow((c.ctrly1-c.y1),2.0));
4 int red = Math.max(0, Math.min(255, c.getRed() + rDiff));
5 double log10 = Math.log(10);
6 double log10 = Math.log(10);
7 float cosphi1 = (float)Math.cos(phi1);
8 double eps = Math.pow(2.0, -52.0);
9 double denominatorValue = Math.pow(denominator, power);
10 return Math.sqrt(Math.abs(point1.x-point2.x)*Math.abs(point1.x-point2.x)+Math.abs(point1.y-point2.y)*Math.abs(point1.y-point2.y));
11 txmin = Math.max(txmin, minTileX);
12 if (view.posX > map.MAP_X - 10.0) dirX = -1.0 * Math.random();
13 new Point((int)(stepSize*Math.cos(theta)),
14 int xx = Math.max(x, r.x);
15 int pageSize = Math.max(getLastVisibleIndex() - getFirstVisibleIndex(), 0);
16 double degrees = Math.atan2(deltaMouseY, deltaMouseX);
17 double len = Math.sqrt(vx * vx + vy * vy);
18 minVTS= Math.min(minVTS,node.nodeID);
19 m[0] = sx*Math.cos(theta);
20 Dimension size = new Dimension(Math.max((int) Math.round(Math.ceil(rect.getWidth())),buttonMinSize), Math.max((int) Math.round(Math.ceil(rect.getHeight())),buttonMinSize));

Links to utility classes and functions:

1 convertLength(int fromId, int toId, double fromValue) com.liferay.portlet.unitconverter.util.ConverterUtil
2 convertMass(int fromId, int toId, double fromValue) com.liferay.portlet.unitconverter.util.ConverterUtil
3 convertTemperature(int fromId, int toId, double fromValue) com.liferay.portlet.unitconverter.util.ConverterUtil
4 convertVolume(int fromId, int toId, double fromValue) com.liferay.portlet.unitconverter.util.ConverterUtil
5 getConversion(int type, int fromId, int toId, double fromValue) com.liferay.portlet.unitconverter.util.ConverterUtil
6 org.apache.commons.math.special.Beta
7 org.apache.commons.math.complex.ComplexUtils
8 org.apache.commons.math.special.Gamma
9 com.zentense.step2.util.Math
10 org.ojalgo.math.MathUtil
11 com.carbonfive.gis.SpatialLocation
12 org.apache.commons.math.stat.StatUtils
13 com.liferay.util.MathUtil
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.