Problem 44788. Find the right number make the equation

Solution 1673610

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

Error using find_right_number_for_F Too many output arguments. Error in Test1 (line 2) [a, b] = find_right_number_for_F(n);

Suggested Problems

More from this Author17

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!