Cody

Solution 2333623

Submitted on 22 May 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; c=exp(2*pi/3); ref = (log(c/b^a)*sin(a*pi/3))/abs(c-a); user = MyFunc(); assert(isequal(user,ref))

Unrecognized function or variable 'e'. Error in MyFunc (line 4) c=e*(2*pi/3); Error in Test1 (line 5) user = MyFunc();

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

Unrecognized function or variable 'e'. Error in MyFunc (line 4) c=e*(2*pi/3); Error in Test2 (line 1) [z a] = MyFunc();

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

Unrecognized function or variable 'e'. Error in MyFunc (line 4) c=e*(2*pi/3); Error in Test3 (line 1) [z a b] = MyFunc();

4   Fail
[z a b c] = MyFunc(); assert(c==exp(2*pi/3));

Unrecognized function or variable 'e'. Error in MyFunc (line 4) c=e*(2*pi/3); Error in Test4 (line 1) [z a b c] = MyFunc();

Suggested Problems

More from this Author26