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.
Random tests sometimes generate invalid input where angle is a multiple of 360. In this case there are no solutions, as the surface is perfectly flat:
I fail to see what the purpose of this kata is if the entire derivation is in the description and we're only left with the task of transcribing the simplified equations into code.
Also your formulas are missing a lot of parentheses, so some of them are incorrect with usual operator precedence convention. e.g
g sin(θ) / 1 + 1/2
should beg sin(θ) / (1 + 1/2)
.