Cody

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

Solution 1519450

Submitted on 7 May 2018 by J. S. Kowontan
• Size: 35
• This is the leading solution.
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)

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)

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)

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)

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)