Cody

Solution 1974667

Submitted on 14 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
n_in = 3; n_out = 3; theta_crit_correct = -1; assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))

Error in solution: Line: 1 Column: 47 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
n_in = 1; n_out = 1.333; theta_crit_correct = -1; assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))

Error in solution: Line: 1 Column: 47 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
n_in = 1.333; n_out = 1; theta_crit_correct = 49; assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))

Error in solution: Line: 1 Column: 47 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
n_in = 4; n_out = 3; theta_crit_correct = 49; assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))

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

5   Fail
n_in = 4; n_out = 2; theta_crit_correct = 30; assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))

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