Retired

kinematics 1 (retired)

Description
Loading description...
Fundamentals
Algorithms
Physics
Puzzles
  • Please sign in or sign up to leave a comment.
  • saudiGuy Avatar

    python

    • missing imports
    • python new test framework
    • no assertion messages
  • mauro-1 Avatar

    Rounding prevents correct float comparision.

    Two similar values may be rouded to different results, e.g. 0.995, 0.9950000000000001 => 0.99, 1.0

  • mauro-1 Avatar

    Results are wrong.

    Your points change direction after collision, 2nd sample test 40° -> 37.5°; 3rd sample test: 34° -> 28.5°

    a=k*9.8 is acceleration in the direction of movement, but you use it as both a_x and a_y

    This is the worst kata I ever seen.

  • THS23 Avatar

    This comment has been hidden.

  • FArekkusu Avatar

    > PI = 3.142 > Everything is being rounded

    Nothing was fixed.

  • FArekkusu Avatar

    Returning different data types is bad, and the expected behavior is not mentioned anywhere.

  • FArekkusu Avatar

    return a list of tuples: [(final_coordinates1), (final_coordinates2), (dist_covered1, dist_covered2)]

    You're already returning the final coordinates of the objects, why do you ask to also calculate the travelled distances too? And the result should be a tuple, not a list.

  • FArekkusu Avatar

    Constraints: PI = 3.142

    Are you serious? Importing a constant is too hard or what's the meaning of this?

  • FArekkusu Avatar

    ALL calculations are done by rounding of values to second decimal place

    Nothing should be ever rounded.

  • lsnbr Avatar

    Maybe i am missing something in the description, but at what time should you return the coordinates? Also where is K used? And it says "m1 moving with vel. u1 ,..., with vel. v1"

  • Blind4Basics Avatar

    Hi,

    • line breaks are needed, to make the description more readable (or bullet points)
    • a link to the related physic stuff might be useful
    • if you're about to model a physics problem, you have to give the units of all the data/inputs/outputs.
  • FArekkusu Avatar
    • No random tests
    • "Convert math formula into a program" is a worthless kata idea