We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Yes, because the problems specifies that both AB and BC are positive, atan should work. I got this wrong orginally because I assumed that math.atan(AB/BC) = math.atan2(AB, BC) which wasn't unreasonable - just not true ;-)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Divisibility of Power
You are viewing a single comment's thread. Return to all comments →
Yes, because the problems specifies that both AB and BC are positive, atan should work. I got this wrong orginally because I assumed that math.atan(AB/BC) = math.atan2(AB, BC) which wasn't unreasonable - just not true ;-)