Cody

# Problem 2781. Rule of mixtures (composites) - reverse engineering

Solution 646591

Submitted on 14 Apr 2015 by Gergely Patay
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 = 35.4; Ef = 100; ff = 0.30; [Em] = rule_of_mixtures_rev_eng(Ec,Ef,ff); assert(sum(abs(sort(Em) - [7.7143 12.7168 17.7193 22.7218 27.7243])) < 1e-2)

ans = 27.7243 22.7218 17.7193 12.7168 7.7143

2   Pass
%% Ec = 85.1; Ef = 250; ff = 0.20; [Em] = rule_of_mixtures_rev_eng(Ec,Ef,ff); assert(sum(abs(sort(Em) - [43.8750 51.1696 58.4642 65.7589 73.0535])) < 1e-2)

ans = 73.0535 65.7589 58.4642 51.1696 43.8750

3   Pass
%% Ec = 155.5; Ef = 1000; ff = 0.05; [Em] = rule_of_mixtures_rev_eng(Ec,Ef,ff); assert(sum(abs(sort(Em) - [111.0526 120.5101 129.9676 139.4251 148.8826])) < 1e-2)

ans = 148.8826 139.4251 129.9676 120.5101 111.0526

4   Pass
%% Ec = 27.6; Ef = 100; ff = 0.10; [Em] = rule_of_mixtures_rev_eng(Ec,Ef,ff); assert(sum(abs(sort(Em) - [19.5556 21.0529 22.5503 24.0477 25.5450])) < 1e-2)

ans = 25.5450 24.0477 22.5503 21.0529 19.5556

5   Pass
%% Ec = 204.9; Ef = 1000; ff = 0.15; [Em] = rule_of_mixtures_rev_eng(Ec,Ef,ff); assert(sum(abs(sort(Em) - [64.5882 93.3631 122.1380 150.9128 179.6877])) < 1e-2)

ans = 179.6877 150.9128 122.1380 93.3631 64.5882