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 |
phi_correct = (sqrt(5)+1)/2;
error_bound = 10^-12;
assert(abs(goldenRatio() - phi_correct) <= error_bound )
ans =
1.6180
|
340 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
298 Solvers
Rounding off numbers to n decimals
1051 Solvers
129 Solvers
2625 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!