0% found this document useful (0 votes)
9 views2 pages

Java Math Functions Reference

The document provides a reference for Java math functions, detailing general math functions and trigonometric functions. Each function is listed with its return type and a brief description of its purpose. Key functions include absolute value, square root, power, and trigonometric calculations like sine and cosine.

Uploaded by

nitubinodsingh09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Java Math Functions Reference

The document provides a reference for Java math functions, detailing general math functions and trigonometric functions. Each function is listed with its return type and a brief description of its purpose. Key functions include absolute value, square root, power, and trigonometric calculations like sine and cosine.

Uploaded by

nitubinodsingh09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Java Math Functions Reference

General Math Functions:

Function Return Type Description

[Link](x) Same as input Absolute value

[Link](a, b) Same as input Maximum of two values

[Link](a, b) Same as input Minimum of two values

[Link](x) double Square root

[Link](x) double Cube root

[Link](a, b) double Power a^b

[Link](x) double e^x

[Link](x) double Natural log

Math.log10(x) double Base-10 log

[Link](x) int/long Nearest whole number

[Link](x) double Round down

[Link](x) double Round up

[Link](x) double Round to nearest int

[Link]() double Random [0.0, 1.0)

[Link](x) Same as input Sign of number

[Link](mag, sign) Same as input Copy sign

[Link](x) double Radians to degrees

[Link](x) double Degrees to radians

Trigonometric Functions:

Function Return Type Description

[Link](x) double Sine (radians)

[Link](x) double Cosine


Java Math Functions Reference

[Link](x) double Tangent

[Link](x) double Arc sine

[Link](x) double Arc cosine

[Link](x) double Arc tangent

Math.atan2(y, x) double Arc tangent y/x

You might also like