Cody

# Problem 2776. Rule of mixtures (composites) - lower and upper bounds

Solution 1523438

Submitted on 9 May 2018 by bainhome
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
Ef = 100; Em = 10; ff = 0.30; [Ec_l,Ec_u,E_diff,r_l,r_u] = rule_of_mixtures_l_and_u_bound(Ef,Em,ff); assert(abs(Ec_l - 13.6986) < 1e-4) assert(abs(Ec_u - 37) < 1e-4) assert(abs(E_diff - 23.3014) < 1e-4) assert(abs(r_l - 1.7010) < 1e-4) assert(abs(r_u - .6298) < 1e-4)

2   Pass
Ef = 100; Em = 10; ff = 0.22; [Ec_l,Ec_u,E_diff,r_l,r_u] = rule_of_mixtures_l_and_u_bound(Ef,Em,ff); assert(abs(Ec_l - 12.4688) < 1e-4) assert(abs(Ec_u - 29.8) < 1e-4) assert(abs(E_diff - 17.3312) < 1e-4) assert(abs(r_l - 1.3900) < 1e-4) assert(abs(r_u - 0.5816) < 1e-4)

3   Pass
Ef = 100; Em = 10; ff = 0.15; [Ec_l,Ec_u,E_diff,r_l,r_u] = rule_of_mixtures_l_and_u_bound(Ef,Em,ff); assert(abs(Ec_l - 11.5607) < 1e-4) assert(abs(Ec_u - 23.5) < 1e-4) assert(abs(E_diff - 11.9393) < 1e-4) assert(abs(r_l - 1.0327) < 1e-4) assert(abs(r_u - 0.5081) < 1e-4)

4   Pass
Ef = 1000; Em = 10; ff = 0.30; [Ec_l,Ec_u,E_diff,r_l,r_u] = rule_of_mixtures_l_and_u_bound(Ef,Em,ff); assert(abs(Ec_l - 14.2248) < 1e-4) assert(abs(Ec_u - 307) < 1e-4) assert(abs(E_diff - 292.7752) < 1e-4) assert(abs(r_l - 20.5821) < 1e-4) assert(abs(r_u - 0.9537) < 1e-4)

5   Pass
Ef = 1000; Em = 10; ff = 0.22; [Ec_l,Ec_u,E_diff,r_l,r_u] = rule_of_mixtures_l_and_u_bound(Ef,Em,ff); assert(abs(Ec_l - 12.7845) < 1e-4) assert(abs(Ec_u - 227.8) < 1e-4) assert(abs(E_diff - 215.0155) < 1e-4) assert(abs(r_l - 16.8185) < 1e-4) assert(abs(r_u - 0.9439) < 1e-4)

6   Pass
Ef = 1000; Em = 10; ff = 0.15; [Ec_l,Ec_u,E_diff,r_l,r_u] = rule_of_mixtures_l_and_u_bound(Ef,Em,ff); assert(abs(Ec_l - 11.7440) < 1e-4) assert(abs(Ec_u - 158.5) < 1e-4) assert(abs(E_diff - 146.756) < 1e-4) assert(abs(r_l - 12.4963) < 1e-4) assert(abs(r_u - 0.9259) < 1e-4)