(not finished)
Packagecynical_gary; Public classCynical_text { Public Static voidMain (string[] args) {System.out.println (The radian corresponding to 30° is: "+math.toradians (30)); System.out.println ("The Π/6 corresponds to the angle:" +math.todegrees (MATH.PI/6)); System.out.println ("The radian corresponding to 45° is:" +math.toradians (45)); System.out.println ("The Π/4 corresponds to the angle:" +math.todegrees (MATH.PI/4)); }}/*output: 30° corresponds to the radian is: 0.5235987755982988Π/6 corresponds to the angle is: 29.99999999999999645° corresponds to the arc is: 0.7853981633974483Π/4 corresponding angle is: 45.0*/
conversion of angles and radians
The Math.toradians () method is used to convert an angle to radians (static method)
public static double Toradians (double angdeg)
Angdeg: angle-represented angle
Return value: The value of the angle angdeg in radians
Math. The Todegrees () method is used to convert radians to angles (static methods)
public static double todegress (double Angrad)
Angrad: The angle expressed in radians
return value: Angular Angrad value represented by angle
Packagecynical_gary; Public classCynical_text { Public Static voidMain (string[] args) {System.out.println ("30° corresponds to the sine value:" +math.sin (MATH.PI/6));//calculates the sine value of 30°System.out.println ("30° corresponds to the cosine value is:" +math.cos (MATH.PI/6));//calculates the cosine of 30°System.out.println ("30° corresponds to the tangent value is:" +math.tan (MATH.PI/6));//calculate the tangent of 30° }}/*The sine value corresponding to the output 30° is: 0.4999999999999999430° corresponds to the cosine value is: 0.866025403784438730° corresponding tangent value is: 0.5773502691896257*/
transformation of Trigonometric functions
Packagecynical_gary; Public classCynical_text { Public Static voidMain (string[] args) {System.out.println ("0.5 of the inverse chord value is:" +math.asin (0.5));//calculates the inverse chord value of 0.5The inverse cosine of the System.out.println ("0.866" is: "+math.acos (0.866));//calculates the inverse cosine value of 0.866System.out.println ("0.5774 corresponds to the inverse tangent value is:" +math.atan (0.5774));//calculates the inverse tangent value of 0.5774 }}/*The sine value of the output 0.5 is: the inverse cosine of the 0.52359877559829890.866 is: 0.52364958093182890.5774 corresponds to the inverse tangent value is: 0.5236360729028994*/
Conversion of Inverse trigonometric function
Common mathematical classes in Java Foundation __java those things