Cody

Solution 1994205

Submitted on 28 Oct 2019
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
a=10; b=2.5e23; ref = (sqrt(a)+b^(1/21))^pi; user = MyFunc(); assert(isequal(user,ref))

a = 10 b = 2 ans = 5.0000e+23 y = 90.4986

Assertion failed.

2   Pass
[y a b] = MyFunc(); assert(a==10);

a = 10 b = 2 ans = 5.0000e+23 y = 90.4986

3   Fail
[y a b] = MyFunc(); assert(b==2.5e23);

a = 10 b = 2 ans = 5.0000e+23 y = 90.4986

Assertion failed.

Suggested Problems

More from this Author26