Java Reference
In-Depth Information
On the Web
The programExpoDemo.java is located in the Chapter 23 folder at
www.crcpress.com .
public static double sqrt(double a)
Returns the correctly rounded positive square root of a double value. The
following are special cases:
1. If the argument is NaN or less than zero,then the result is NaN.
2. If the argument is positive infinity,then the result is positive infinity.
3. If the argument is positive zero or negative zero,then the result is the same
as the argument.
Otherwise,the result is the double value closest to the true mathemati -
cal square root of the argument.
public static double exp(double a)
Returns the constant e raised to the power of a double value. The following
are special cases:
1. If the argument is NaN,the result is NaN.
2. If the argument is positive infinity,then the result is positive infinity.
3. If the argument is negative infinity,then the result is positive zero.
Trigonometric Functions
Trigonometric methods in the classes Math and StrictMath provide for the
calculation of trigonometric functions and arc-functions,as well as conver -
sionsofradianstodegreesanddegreestoradians. Table23-1 describesthe
trigonometry-related functions.
The functions not included in the classes can be easily obtained by applying
the corresponding identities,namely:
1
sec
Θ=
cos
1
Θ
csc
Θ=
sin
1
Θ
cot
Θ=
tan
Θ
Search WWH ::




Custom Search