Cody

Solution 1070745

Submitted on 3 Dec 2016
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   Fail
phi_correct = (sqrt(5)+1)/2; error_bound = 10^-12; assert(abs(goldenRatio() - phi_correct) <= error_bound )

Undefined function or variable 'phi'. Error in goldenRatio (line 2) phi = phi^2 - 1 Error in TestPoint1 (line 3) assert(abs(goldenRatio() - phi_correct) <= error_bound )

Suggested Problems

More from this Author1