Cody

# Problem 2780. Rule of mixtures (composites) - other bound

Solution 546496

Submitted on 16 Dec 2014 by Binbin Qi
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
%% 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) < 10e-2) assert(u_or_l == 1)

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) < 10e-2) assert(u_or_l == 0)

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) < 10e-2) assert(u_or_l == 1)

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) < 10e-2) assert(u_or_l == 0)

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) < 10e-2) assert(u_or_l == 0)

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) < 10e-2) assert(u_or_l == 1)

### Community Treasure Hunt

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

Start Hunting!