Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n_in = 3; n_out = 3;
theta_crit_correct = -1;
assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))
|
2 | Pass |
n_in = 1; n_out = 1.333;
theta_crit_correct = -1;
assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))
|
3 | Fail |
n_in = 1.333; n_out = 1;
theta_crit_correct = 49;
assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))
t =
48.6066
|
4 | Fail |
n_in = 4; n_out = 3;
theta_crit_correct = 49;
assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))
t =
48.5904
|
5 | Fail |
n_in = 4; n_out = 2;
theta_crit_correct = 30;
assert(isequal(totalInternalReflection(n_in,n_out),theta_crit_correct))
t =
30.0000
|
228 Solvers
5463 Solvers
444 Solvers
275 Solvers
Integer Sequence - II : New Fibonacci
252 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!