Values of a=0 and b=0 occur in random tests sporadically, and my solution, which did not account for a=0, passed after two resubmits. Random tests for cases where a,b,c are always 0 would be good.
Please refine the angle in question to be within [-pi/2, pi/2]. Otherwise, some (or all) of the cosine, tangent, cotagent might be negative, which seems not expected in this kata.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/189.
Please join the discussion to help us identify duplicate kata and retire them.
Rounding behavior should be specified and edge cases like this should be tested. Half of solutions could fail randomly, but were lucky enough to pass.
Values of a=0 and b=0 occur in random tests sporadically, and my solution, which did not account for a=0, passed after two resubmits. Random tests for cases where a,b,c are always 0 would be good.
Please refine the angle in question to be within [-pi/2, pi/2]. Otherwise, some (or all) of the cosine, tangent, cotagent might be negative, which seems not expected in this kata.