Wait, solved it, I should use Math.atan instead of tan and then convert the radians i get from that to degrees. And I get the correct output.
Here's my final code:
import java.util.Scanner;...
Type: Posts; User: Dr.Code
Wait, solved it, I should use Math.atan instead of tan and then convert the radians i get from that to degrees. And I get the correct output.
Here's my final code:
import java.util.Scanner;...
Well what I'm trying to do is to calculate an angle with only knowing the abutting catheter and the adjacent side.
I do not know how to do that. I think it is something with arctan(Math.atan()), but...
That's the problem, I have no idea what it returns, but I will try the toDegrees method.
I am pretty new to math and wanted to find out how to calculate the angle between the hypotenuse and the adjacent side, with only knowing the adjacent side and the abutting catheter.
I know that tan...