Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
Ec = 37;
Ef = 100;
Em = 10;
ff = 0.30;
[Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);
assert(abs(Ec_other - 13.6986) < 1e-4)
assert(u_or_l == 1)
u_or_l =
1
Ec_other =
13.6986
|
2 | Pass |
%%
Ec = 13.6986;
Ef = 100;
Em = 10;
ff = 0.30;
[Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);
assert(abs(Ec_other - 37) < 1e-4)
assert(u_or_l == 0)
u_or_l =
0
Ec_other =
37
|
3 | Pass |
%%
Ec = 23.5;
Ef = 100;
Em = 10;
ff = 0.15;
[Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);
assert(abs(Ec_other - 11.5607) < 1e-4)
assert(u_or_l == 1)
u_or_l =
1
Ec_other =
11.5607
|
4 | Pass |
%%
Ec = 11.5607;
Ef = 100;
Em = 10;
ff = 0.15;
[Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);
assert(abs(Ec_other - 23.5) < 1e-4)
assert(u_or_l == 0)
u_or_l =
0
Ec_other =
23.5000
|
5 | Pass |
%%
Ec = 11.7440;
Ef = 1000;
Em = 10;
ff = 0.15;
[Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);
assert(abs(Ec_other - 158.5) < 1e-4)
assert(u_or_l == 0)
u_or_l =
0
Ec_other =
158.5000
|
6 | Pass |
%%
Ec = 158.5;
Ef = 1000;
Em = 10;
ff = 0.15;
[Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);
assert(abs(Ec_other - 11.7440) < 1e-4)
assert(u_or_l == 1)
u_or_l =
1
Ec_other =
11.7440
|
701 Solvers
Calculate compression ratio of engine
76 Solvers
272 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
298 Solvers
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!