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))
ans =
89
|
2 | Fail |
n_in = 1; n_out = 1.333;
theta_crit_correct = -1;
assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))
ans =
89.0000 -46.0000i
|
3 | Pass |
n_in = 1.333; n_out = 1;
theta_crit_correct = 49;
assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))
ans =
49
|
4 | Pass |
n_in = 4; n_out = 3;
theta_crit_correct = 49;
assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))
ans =
49
|
5 | Pass |
n_in = 4; n_out = 2;
theta_crit_correct = 30;
assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))
ans =
30
|
Return the 3n+1 sequence for n
6169 Solvers
404 Solvers
Create a square matrix of multiples
383 Solvers
185 Solvers
521 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!