Cody

Solution 1673611

Submitted on 14 Nov 2018
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Fail
for n = 1 : 3 [a, b] = find_right_number_for_F(n); assert(isreal(a)); assert(isreal(b)); assert(a>1); assert(b>1); assert(mod(a,1)==0); assert(mod(b,1)==0); assert(mod(sqrt(a+n*b),1)==0); assert(mod(sqrt(hypot(a,b)),1)==0); end

Undefined function or variable 'n'. Error in find_right_number_for_F (line 2) if n == 1 Error in Test1 (line 2) [a, b] = find_right_number_for_F(n);