This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
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)
|
Project Euler: Problem 6, Natural numbers, squares and sums.
782 Solvers
Getting the row and column location from a matrix
192 Solvers
Check if number exists in vector
2315 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
198 Solvers
68 Solvers