-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
17
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
I haven't tried this yet for all the trig functions, but Math.sin() and Math.asin() don't produce expected results.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I was using some trig functions for a program for my friend, a mathematician, and it didn't give expected results. I expected the sine to return ~0.017452, as it had shown on my calculator.
ACTUAL -
The sine instead returned ~0.8, nowhere in the range or around it. As for the arcsine, I expected 90, but instead got ~1.5. Again, what?
---------- BEGIN SOURCE ----------
Sine: System.out.println(Math.sin(1));
Arcsine: System.out.println(Math.asin(1));
---------- END SOURCE ----------
I haven't tried this yet for all the trig functions, but Math.sin() and Math.asin() don't produce expected results.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I was using some trig functions for a program for my friend, a mathematician, and it didn't give expected results. I expected the sine to return ~0.017452, as it had shown on my calculator.
ACTUAL -
The sine instead returned ~0.8, nowhere in the range or around it. As for the arcsine, I expected 90, but instead got ~1.5. Again, what?
---------- BEGIN SOURCE ----------
Sine: System.out.println(Math.sin(1));
Arcsine: System.out.println(Math.asin(1));
---------- END SOURCE ----------