Cody

Solution 1660141

Submitted on 26 Oct 2018
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

Error using sum Invalid data type. First argument must be numeric or logical. Error in bvpSolver (line 4) sol=sum(sum(sol)) Error in Test1 (line 4) assert(abs(bvpSolver(a,b)-y_correct)<10e-4)

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

Error using sum Invalid data type. First argument must be numeric or logical. Error in bvpSolver (line 4) sol=sum(sum(sol)) Error in Test2 (line 4) assert(abs(bvpSolver(a,b)-y_correct)<10e-4)