Test  Status  Code Input and Output 

1  Fail 
Ef = 100;
Em = 10;
Vf = 30;
Vm = 70;
b_str = 'lower';
[Ec] = rule_of_mixtures_either_bound_vol(b_str,Ef,Em,Vf,Vm);
assert(abs(Ec  13.6986) < 1e4)

2  Fail 
Ef = 100;
Em = 10;
Vf = 11;
Vm = 39;
b_str = 'L';
[Ec] = rule_of_mixtures_either_bound_vol(b_str,Ef,Em,Vf,Vm);
assert(abs(Ec  12.4688) < 1e4)

3  Fail 
Ef = 100;
Em = 10;
Vf = 150;
Vm = 850;
b_str = 'Lower';
[Ec] = rule_of_mixtures_either_bound_vol(b_str,Ef,Em,Vf,Vm);
assert(abs(Ec  11.5607) < 1e4)

4  Fail 
Ef = 1000;
Em = 10;
Vf = 3;
Vm = 7;
b_str = 'U';
[Ec] = rule_of_mixtures_either_bound_vol(b_str,Ef,Em,Vf,Vm);
assert(abs(Ec  307) < 1e4)

5  Fail 
Ef = 1000;
Em = 10;
Vf = 2.2;
Vm = 7.8;
b_str = 'lower bound';
[Ec] = rule_of_mixtures_either_bound_vol(b_str,Ef,Em,Vf,Vm);
assert(abs(Ec  12.7845) < 1e4)

6  Fail 
Ef = 1000;
Em = 10;
Vf = 30;
Vm = 170;
b_str = 'U bound';
[Ec] = rule_of_mixtures_either_bound_vol(b_str,Ef,Em,Vf,Vm);
assert(abs(Ec  158.5) < 1e4)

7  Fail 
Ef = 57;
Em = 3.9;
Vf = 1.27;
Vm = 9;
b_str = 'Lower';
[Ec] = rule_of_mixtures_either_bound_vol(b_str,Ef,Em,Vf,Vm);
assert(abs(Ec  4.4078) < 1e4)

7441 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
533 Solvers
327 Solvers
146 Solvers
216 Solvers