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.
I'm guessing their rounding is wrong.
This is not a kata issue, this is your solution issue.
You are asked to calculate (x, y) for the end of a vector that starts at (0, 0), heads in the direction of 45 degrees and has a radius of 1. This means that distance between (0, 0) and (x, y) must be exactly 1.
Your solution returns (1.0, 1.0) - but this is wrong! A vector (0, 0) -> (1, 1) has length of squareroot(2), i.e. approximately 1.4142.
(1.0, 1.0) should equal (0.7071067812, 0.7071067812)
Is what the unit test tells me
I can't find the bug you are talking about in the python version...(45.0, 1.0) does equal (0.7071067812, 0.7071067812)
fixed
Issue in Python, 4th test
I get this output:
(1.0, 1.0) should equal (0.7071067812, 0.7071067812)
Shouldnt (45.0, 1.0) equal (0.7071067812, 0.7071067812) ?
Might have misunderstood the exercise though.