Problem 42689. Distance a ball travels after throwing vertically
71.05% Correct | 28.95% Incorrect
Last Solution submitted on Oct 23, 2022
Peng Liu on 25 Nov 2015
A test case for s < v/10 is missing.
Ben Petschel on 20 Sep 2016
I think test cases 3 and 4 are wrong.
Case 3 (v=20, s=12.5) should have d=571.25
Case 4 (v=5, s=5) should have d=102.5
Jihye Sofia Seo on 12 Feb 2017
Specify the direction of initial velocity, is it vertical, or horizontal?
Are Mjaavatten on 21 Dec 2015
Solution is correct only if s is a multiplum of 0.1. Example: s=2.05,v=20 gives d=19.05. Correct value is 20.0125
Problem Recent Solvers51
Return unique values without sorting
Create a two dimensional zero matrix
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!