acos() Method in java
Java Programming Language / Number Class in java
932Program:
public class WrapperacosMethod { public static void main(String args[]) { double degrees = 60.0; double radians = Math.toRadians(degrees); System.out.format("The value of pi is %.4f%n", Math.PI); System.out.format("The arccosine of %.4f is %.4f degrees %n", Math.cos(radians), Math.toDegrees(Math.acos(Math.sin(radians)))); } } /* Returns the arccosine of the specified double value. */
Output:
The value of pi is 3.1416 The arccosine of 0.5000 is 30.0000 degrees Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS