Cody

Solution 2160631

Submitted on 15 Mar 2020 by Asif Newaz
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)

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)

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)

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)

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)

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)

E_diff = 146.7560 r_l = 12.4963 r_u = 0.9259

Suggested Problems

More from this Author139