Cody

Problem 1807. 04 - Scalar Equations 2

Solution 2715993

Submitted on 20 Jul 2020
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))

Not enough input arguments. Error in MyFunc (line 2) y=(sqrt(a)+b^1/21)^pi Error in Test1 (line 4) user = MyFunc();

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

Error using MyFunc Too many output arguments. Error in Test2 (line 1) [y a b] = MyFunc();

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

Error using MyFunc Too many output arguments. Error in Test3 (line 1) [y a b] = MyFunc();

Suggested Problems

More from this Author26