Cody

Solution 1702619

Submitted on 4 Jan 2019 by Martin C.
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
a=1 b=-4 y_correct = -23.8493; assert(abs(bvpSolver(a,b)-y_correct)<10e-4)

a = 1 b = -4 sol = struct with fields: solver: 'bvp4c' x: [0 0.5000 0.7500 1 1.2500 1.5000 2 2.3333 2.6667 2.6867 2.7068 2.7070 2.7072 2.7425 2.7778 3.0139 3.2500 3.5000 4] y: [2×19 double] yp: [2×19 double] stats: [1×1 struct] sol = -23.8493

2   Pass
a=1 b=-6 y_correct = -28.5209 assert(abs(bvpSolver(a,b)-y_correct)<10e-4)

a = 1 b = -6 y_correct = -28.5209 sol = struct with fields: solver: 'bvp4c' x: [0 0.2500 0.5000 1 1.2500 1.5000 1.7500 2 2.3333 2.6667 2.7948 2.9228 2.9236 2.9238 2.9240 2.9620 3 3.2500 3.5000 4] y: [2×20 double] yp: [2×20 double] stats: [1×1 struct] sol = -28.5209