Search code examples
javatype-conversiontrigonometrydegreesradians

JAVA sin() output value to radians/degrees


I have this problem: I know Math.sin(someUnknownFloatValue) output value and I really need to know how just from this single Math.sin() output find out what was that actual "someUnknownFloatNumber" that created it - is it possible, isn't there already some Math function that convert this sin() output to degrees/radians?


Solution

  • The arcsine is the inverse sine function that you are looking for. In Java, this would be asin().