Cody

Solution 1891251

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

Error in solution: Line: 4 Column: 10 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

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

Error in solution: Line: 4 Column: 10 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

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

Error in solution: Line: 4 Column: 10 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

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

Error in solution: Line: 4 Column: 10 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.