Cody

# Problem 42915. How Far Can You Throw Something?

Solution 1823680

Submitted on 23 May 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
format compact hstart=0;vstart=50; [long_d thetamax]=ballistics(hstart,vstart) dl=abs(long_d-254.841997961264) dt=abs(thetamax-45) assert(and(dl<1e-6,dt<1e-6))

long_d = 254.8420 thetamax = 45.0000 dl = 1.3614e-11 dt = 9.3620e-06

Assertion failed.

2   Fail
hstart=100;vstart=20; [long_d thetamax]=ballistics(hstart,vstart) dl=abs(long_d-99.08340778978895) dt=abs(thetamax-67.63189529197281) assert(and(dl<1e-6,dt<1e-6))

long_d = 99.0834 thetamax = 22.3681 dl = 3.4106e-13 dt = 45.2638

Assertion failed.

3   Fail
hstart=100;vstart=50; [long_d thetamax]=ballistics(hstart,vstart) dl=abs(long_d-340.4597531532057) dt=abs(thetamax-53.1842963916761) assert(and(dl<1e-6,dt<1e-6))

long_d = 340.4598 thetamax = 36.8157 dl = 2.3533e-11 dt = 16.3686

Assertion failed.

4   Fail
hstart=50;vstart=100; [long_d thetamax]=ballistics(hstart,vstart) dl=abs(long_d-1068.198437549283) dt=abs(thetamax-46.33996589024096) assert(and(dl<1e-6,dt<1e-6))

long_d = 1.0682e+03 thetamax = 43.6600 dl = 2.2897e-10 dt = 2.6800

Assertion failed.

5   Fail
hstart=30;vstart=30; [long_d thetamax]=ballistics(hstart,vstart) dl=abs(long_d-117.9889278221855) dt=abs(thetamax-52.13289838740581) assert(and(dl<1e-6,dt<1e-6))

long_d = 117.9889 thetamax = 37.8671 dl = 2.3576e-11 dt = 14.2658

Assertion failed.