Cody

Solution 1663792

Submitted on 1 Nov 2018 by Binbin Qi
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 = 1; te = 16.3214; assert(abs(zero_crossing(a,b)-te)<0.01)

2   Pass
a = 10; b = 10; te = 16.3070; assert(abs(zero_crossing(a,b)-te)<0.01)

3   Pass
a = 0.1; b = 100; te = 16.3298; assert(abs(zero_crossing(a,b)-te)<0.01)

4   Pass
a = -1;b = -0.5; te = 4.1668; assert(abs(zero_crossing(a,b)-te)<0.01)

5   Pass
a = -0.01;b = -15; te = 4.8781; assert(abs(zero_crossing(a,b)-te)<0.01)

Suggested Problems