This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
Ef = 100;
Em = 10;
ff = 0.30;
b_str = 'lower';
[Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff);
assert(abs(Ec - 13.6986) < 10e-2)
|
2 | Pass |
%%
Ef = 100;
Em = 10;
ff = 0.22;
b_str = 'L';
[Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff);
assert(abs(Ec - 12.4688) < 10e-2)
|
3 | Pass |
%%
Ef = 100;
Em = 10;
ff = 0.15;
b_str = 'Upper';
[Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff);
assert(abs(Ec - 23.5) < 10e-2)
|
4 | Pass |
%%
Ef = 1000;
Em = 10;
ff = 0.30;
b_str = 'Lower';
[Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff);
assert(abs(Ec - 14.2248) < 10e-2)
|
5 | Pass |
%%
Ef = 1000;
Em = 10;
ff = 0.22;
b_str = 'u';
[Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff);
assert(abs(Ec - 227.8) < 10e-2)
|
6 | Pass |
%%
Ef = 1000;
Em = 10;
ff = 0.15;
b_str = 'upper';
[Ec] = rule_of_mixtures_either_bound(b_str,Ef,Em,ff);
assert(abs(Ec - 158.5) < 10e-2)
|
Calculate the area of a triangle between three points
871 Solvers
The Answer to Life, the Universe, and Everything
383 Solvers
Who is the smartest MATLAB programmer?
561 Solvers
130 Solvers
53 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!