If the acceleration is initially zero, it will not move.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
t = -1;
h_correct = 1000;
assert(abs(height_of_object_at_time(t)-h_correct)<0.1)
|
2 | Fail |
t = 0;
h_correct = 1000;
assert(abs(height_of_object_at_time(t)-h_correct)<0.1)
|
3 | Fail |
t = 1;
h_correct = 995.1;
assert(abs(height_of_object_at_time(t)-h_correct)<0.1)
|
4 | Fail |
t = 10;
h_correct = 510;
assert(abs(height_of_object_at_time(t)-h_correct)<0.1)
|
5 | Fail |
t = 15;
h_correct = 0;
assert(abs(height_of_object_at_time(t)-h_correct)<0.1)
|
Determine whether a vector is monotonically increasing
11918 Solvers
3602 Solvers
Flip the main diagonal of a matrix
506 Solvers
Number of digits in an integer
336 Solvers
2981 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!