Cody

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

Solution 2500691

Submitted on 8 Jun 2020 by Nikolaos Nikolaou
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)

Ec_l = 13.6986 Ec_u = 37 E_diff = 23.3014 r_l = 1.7010 r_u = 0.6298

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)

Ec_l = 12.4688 Ec_u = 29.8000 E_diff = 17.3312 r_l = 1.3900 r_u = 0.5816

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)

Ec_l = 11.5607 Ec_u = 23.5000 E_diff = 11.9393 r_l = 1.0327 r_u = 0.5081

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)

Ec_l = 14.2248 Ec_u = 307 E_diff = 292.7752 r_l = 20.5821 r_u = 0.9537

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)

Ec_l = 12.7845 Ec_u = 227.8000 E_diff = 215.0155 r_l = 16.8185 r_u = 0.9439

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)

Ec_l = 11.7440 Ec_u = 158.5000 E_diff = 146.7560 r_l = 12.4963 r_u = 0.9259

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!