This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
answer is given in test suite
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
phi_correct = (sqrt(5)+1)/2;
error_bound = 10^-12;
assert(abs(goldenRatio() - phi_correct) <= error_bound )
|
Get the length of a given vector
3564 Solvers
Arrange vector in ascending order
624 Solvers
190 Solvers
436 Solvers
1173 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!