Mathematical functions Math recording method in java

1, trigonometric functions and attributes
Math.sin () - Returns the sine
Math.cos () - Returns the cosine
Math.tan () - Returns the tangent
Math.asin () - Returns arcsine value
Math.acos () - returns the inverse cosine
Math.atan () - returns the arctangent
Math.atan2 () - returns the x-axis by a point (x, y) of angle (in radians)
Math.PI property - the ratio of the circumference of a circle to its diameter return (pi [pi]), approximately equal to 3.1415926
2, the natural logarithm function and the attributes associated
Math.exp () - returns E (natural base of the logarithm) of the power of x (index)
the Math.log () - returns the natural logarithm of
Math.E properties - returns base of the natural logarithm, E is approximately equal to 2.718
Math.LN2 properties - returns 2 loge2 natural logarithm, is approximately equal to 0.693
Math.LN10 properties - returns the natural logarithm loge2 10, is approximately equal to 2.302
by Math.LOG2E properties - returns the logarithm base 2 of log2e E is approximately equal to 1.442
by Math.LOG10E properties - returns the base 10 logarithm of LOG10E E, is equal to the 0.434
3, class function rounding
the Math.abs () - returns the absolute value
Math.ceil () - returns greater than or equal numbers The smallest integer parameters (floor function), rounding of numbers
Math.floor () - returns a numeric parameter less than or equal to the maximum integer, the rounding of numbers
Math.round () - returns the nearest integer number, rounding
4, the minimum and maximum class function
Math.max () - returns the number of digital values larger
Math.min () - returns the number of digits smaller value of
5, refers to the power class function
Math.pow () - returns the specified power in base
Math.sqrt () - - returns the square root of the digital
Math.SQRT1_2 properties - returns the square root of 0.5, or in addition to a square root of 2, approximately equal to 0.707
Math.SQRT2 properties - returns the square root of 2, about 1.414
6, the random number function
Math.random () - returns the pseudo-random number between 0 and 1
7 functions in alphabetical order
the Math.abs () - returns the absolute value of the digital
Math.acos () - returns the inverse cosine
Math.asin () - returns the arcsine
Math.atan () - returns the arctangent
Math.atan2 () - returns the x-axis by a point (x, y) is the angle (in radians)
Math.ceil () - returns the smallest integer greater than or equal to the numerical parameters (floor function), the digital rounding up
Math.cos () - returns the cosine
Math.exp () - returns E (natural logarithm The base number) raised to the power of x (index)
Math.floor () - returns a numeric parameter less than or equal to the maximum integer, the rounding of numbers
Math.log () - Returns the natural logarithm
Math.max () - Returns the number of digits larger value
Math.min () - returns the number of digits smaller value
Math.pow () - returns the specified power in base
Math.random () - returns the pseudo-random number between 0 and. 1
Math.round () - returns the nearest integer number, rounded
Math.sin, () - returns the sine of
the Math.sqrt () - returns the square root
Math.tan () - returns the tangent of a number
8, the attribute alphabetical
Math.E properties - returns the base of the logarithm natural, E is approximately equal to 2.718
Math.LN2 properties - returns the natural logarithm of loge2, approximately equal to 0.693
Math.LN10 properties - 10 returns the natural logarithm loge2 , is approximately equal to 2.302
by Math.LOG2E properties - returns the logarithm base 2 of log2e E is approximately equal to 1.442
by Math.LOG10E properties - returns the base 10 logarithm log10e E, the more equals 0.434
Math.PI properties - ratio of circumference of a circle to its diameter return (pi [pi]), is about equal to 3.1415926
Math.SQRT1_2 properties - returns the square root of 0.5, or squared 2 In addition to 1, is approximately equal to 0.707
Math.SQRT2 Properties - returns the square root of 2, about 1.414

Guess you like

Origin www.cnblogs.com/XingLifeng/p/11082779.html