Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n=10;
e=10;
s=10;
w=10;
t=2;
y_correct=113.1371;
assert(abs(total_distance(n,e,s,w,t)-y_correct)<1e-4)
|
2 | Pass |
n=15;
e=7;
s=3;
w=15;
t=1.5;
y_correct=91.0185;
assert(abs(total_distance(n,e,s,w,t)-y_correct)<1e-4)
|
3 | Pass |
n=11;
e=21;
s=31;
w=41;
t=1.7;
y_correct=263.5003;
assert(abs(total_distance(n,e,s,w,t)-y_correct)<1e-4)
|
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
Make a random, non-repeating vector.
2797 Solvers
Arrange vector in ascending order
624 Solvers
Rounding off numbers to n decimals
1050 Solvers
What is Sum Of all elements of Matrix
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!