Provide the sine values for various angles.
System.out.println(Math.sin(3)); |
The sin()
method computes the sine value of an angle.
Note: Angles are measured in radians.
Tip: Utilize the constant Math.PI to express angles as fractions of π.
|
Parameter |
Description |
angle |
“Necessary. An angle in radians for which the sine needs to be calculated.” |
Returns: |
“A double value indicating the sine of an angle.” |
Java Version: |
Any |