Cody

# Problem 46938. Numerical computation of the optimal shooting angle of a catapult

Solution 3278168

Submitted on 19 Oct 2020 by Brandon Caasenbrood
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   Pass
xd = 15; yd = 5; v0 = 35; y_correct = 1.33; assert(isequal(round(catapult(xd,yd,v0),2),y_correct))

e = 10.496 theta = 1.3950 e = 3.900 theta = 1.3560 e = 1.497 theta = 1.3411 e = 0.583 theta = 1.3352 e = 0.229 theta = 1.3329 e = 0.093 theta = 1.3320 e = 0.054 theta = 1.3315 e = 0.052 theta = 1.3320 e = 0.054 theta = 1.3315 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3315 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3315 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3315 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314 e = 0.053 theta = 1.3320 e = 0.053 theta = 1.3314

`  `

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!