This Java program computes the trigonometric arc tangent of a given degree value. The program does the following:
The Math.atan() method takes a radian value as its argument and returns the trigonometric arc tangent of that value in radians. The Math.toRadians() method is used to convert a degree value to its equivalent in radians.
import java.util.*; public class Trigonometric_ArcTangent { public static void main(String[] args) { Scanner input = new Scanner(System.in); double deg = 0; System.out.print("Enter The Degree : "); deg = input.nextDouble(); double rad = Math.toRadians(deg); System.out.print("Trigonometric arc Tangent is : " + Math.atan(rad)); } }
Enter The Degree : 12 Trigonometric arc Tangent is : 0.2064553175808596
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions