hmm lol ?
this wouldnt pass the current test suite I reckon
Cody bug.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
alfa=pi/2;
bita=-1/10^20;
cos_correct = 1/10^20;
assert(abs(cos_for_boss(alfa,bita)-cos_correct)<eps/10)
coffee =
1.0000e-20
|
2 | Pass |
%%
bita=pi/2;
alfa=-1/11^20;
cos_correct = 1/11^20;
assert(abs(cos_for_boss(alfa,bita)-cos_correct)<eps/10)
coffee =
0
|
3 | Pass |
%%
bita=pi/6;
alfa=pi/6;
cos_correct = 1/2;
assert(abs(cos_for_boss(alfa,bita)-cos_correct)<eps*10)
coffee =
0.5000
|
4 | Pass |
%%
bita=pi/12;
alfa=pi/4;
cos_correct = 1/2;
assert(abs(cos_for_boss(alfa,bita)-cos_correct)<eps*10)
coffee =
0.5000
|
Remove any row in which a NaN appears
6827 Solvers
3892 Solvers
1143 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
367 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!