Remix.run Logo
avipars 2 days ago

Wolfram alpha result - https://www.wolframalpha.com/input?i=arcsin+%28arccos+%28arc...

3pi - 9

= 0.42477796076937971538793014983850865259150819812531746292483377692344921885

nneonneo 2 days ago | parent [-]

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