Cody

Solution 1037930

Submitted on 30 Oct 2016 by Andriy Kavetsky
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 res = struct with fields: solver: 'bvp4c' x: [1×19 double] 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 res = struct with fields: solver: 'bvp4c' x: [1×20 double] y: [2×20 double] yp: [2×20 double] stats: [1×1 struct] sol = -28.5209