Problem 42689. Distance a ball travels after throwing vertically
Solution Stats
Problem Comments
-
3 Comments
A test case for s < v/10 is missing.
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
Specify the direction of initial velocity, is it vertical, or horizontal?
Solution Comments
-
1 Comment
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
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1341 Solvers
-
Determine the number of odd integers in a vector
590 Solvers
-
Back to basics - mean of corner elements of a matrix
365 Solvers
-
Change the first and last diagonal element of the identity matrix to zero
140 Solvers
-
Test Problem; Create a 5x5 array containing all ones
353 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!