Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.
Ruby 3.0 should be enabled.
Ruby 3.0 should be enabled.
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.