I'm working on program that lets the user declare values that they already know (like angles and sides). The program will use trigonometry to fill in the blanks. I'm using the class java.lang.Math
to do this. I have been using these methods:
Math.sin(Double radians)
Math.cos(Double radians)
Both of those methods require that you convert the value from angles to radians, which I've been doing through:
Math.toRadians(Double angle)
I'm trying to use the inverse functions of sine and cosine (also known as; sin^-1(), asin(), cos^-1(), or acos()). They have methods in the same class, listed as:
Math.asin(Double num)
Math.acos(Double num)
Do they require conversion? Before you pass the variable that represents the angle, do you need to convert it from angle to radian (like I did earlier)?
asin
,acos
etc. – user2004685