Cody

Problem 2774. Rule of mixtures (composites) - upper bound

Solution 1770074

Submitted on 2 Apr 2019 by Abdelfatah Teamah
• Size: 9
• 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
Ef = 100; Em = 10; ff = 0.30; assert(isequal(rule_of_mixtures_upper_bound(Ef,Em,ff),37))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In rule_of_mixtures_upper_bound (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
Ef = 100; Em = 10; ff = 0.22; assert(isequal(rule_of_mixtures_upper_bound(Ef,Em,ff),29.8))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In rule_of_mixtures_upper_bound (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]

3   Pass
Ef = 100; Em = 10; ff = 0.15; assert(isequal(rule_of_mixtures_upper_bound(Ef,Em,ff),23.5))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In rule_of_mixtures_upper_bound (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)]

4   Pass
Ef = 1000; Em = 10; ff = 0.30; assert(isequal(rule_of_mixtures_upper_bound(Ef,Em,ff),307))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In rule_of_mixtures_upper_bound (line 2) In ScoringEngineTestPoint4 (line 4) In solutionTest (line 9)]

5   Pass
Ef = 1000; Em = 10; ff = 0.22; assert(isequal(rule_of_mixtures_upper_bound(Ef,Em,ff),227.8))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In rule_of_mixtures_upper_bound (line 2) In ScoringEngineTestPoint5 (line 4) In solutionTest (line 11)]

6   Pass
Ef = 1000; Em = 10; ff = 0.15; assert(isequal(rule_of_mixtures_upper_bound(Ef,Em,ff),158.5))

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In rule_of_mixtures_upper_bound (line 2) In ScoringEngineTestPoint6 (line 4) In solutionTest (line 13)]