Cody

Solution 1702611

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

a = 1 b = -4 res = 1 3 res = 1 3 res = 1 3 res = 1.0000 3.0000 res = 1 3 res = 1 3 res = 1.0000 3.0000 res = 1 3 res = 1 3 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 sol = struct with fields: solver: 'bvp4c' x: [0 0.2500 0.5000 1 1.2500 1.5000 1.6250 1.7500 2 2.5000 2.7500 2.9306 3.1111 3.1389 3.1412 3.1415 3.1418 3.1901 3.2384 3.3333 3.6667 4] y: [2×22 double] yp: [2×22 double] stats: [1×1 struct] sol = -9.0111

Assertion failed.

2   Fail
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 = 1 3 res = 1 3 res = 1 3 res = 1.0000 3.0000 res = 1 3 res = 1 3 res = 1.0000 3.0000 res = 1 3 res = 1 3 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 0 0 res = 1.0e-13 * 0.1490 0 res = 0 0 res = 0 0 res = 1.0e-07 * 0 0.2980 res = 0 0 res = 0 0 res = 0 0 sol = struct with fields: solver: 'bvp4c' x: [0 0.2500 0.5000 1 1.2500 1.5000 1.6250 1.7500 2 2.5000 2.7500 2.9306 3.1111 3.1389 3.1412 3.1415 3.1418 3.1901 3.2384 3.3333 3.6667 4] y: [2×22 double] yp: [2×22 double] stats: [1×1 struct] sol = -9.0111

Assertion failed.