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.
Unpublished. Will change to Vincenty formula.
Is a bit more complex, but hopefully a new & unique challenge.
I will fix that. Sorry, I thought it might be unambiguous.
I hope "Return the distance as float. Do NOT round/ceil/floor" is clear and technically correct ?!
Perhaps I can change the distance algorithm to Vincenty formula
Thanks a lot for your suggestions. I am new to kata authoring and wholeheartedly appreciate all kinds of inputs.
Let me quickly outline the assumptions I made for this kata, to make it more comprehensible:
I hope this helps understand the kata better.
The code doesn't use any rounding - test cases are precise up to 13 decimals. I am happy to share my solution if you are interested.
For the sake of navigating VFR flights you certainly don't need that much of precision - so I thought granting a tolerance of +- 1 might be a good tradeoff in case anyone uses rounding.
Added var R = 3440 as preloaded variable for the earth radius in nm for the sake of this kata.
Thanks a lot for the remark. All roundings have been removed and tests have been refactored using assert.approximately with a tolerance of +-1.
Thanks for the remark guys. Shall be fixed. Please confirm.