Provide the tangent value for various angles.
System. |
The tan() function yields the tangent of an angle.
Reminder: Angles are measured in radians.
Suggestion: Employ the constant Math.PI to represent angles as multiples or fractions of π.
public static double tan(double angle) |
Parameter |
Description |
angle |
Mandatory: Specify an angle in radians to calculate its tangent. |
Returns: |
A decimal value indicating the tangent of an angle. |
Java Version: |
1.5+ |