Remix.run Logo
nneonneo 2 days ago

This is the result if you do it in radians, but the test actually requires that you set the calculator to degrees mode first.

Note that all of the inverse trig functions are multivalued because the trig functions are periodic. Here, Wolfram Alpha is giving you one of the possible answers. The entire family of answers should be +/-9 + n*pi for any integer n; the sign on the 9 is due to cos being an even function.

dominicrose 2 days ago | parent [-]

irb(main):012> Math.asin(Math.acos(Math.atan(Math.tan(Math.cos(Math.sin(9*Math::PI/180))))))*180/Math::PI => 9.00000000000001