Cody

Solution 546018

Submitted on 15 Dec 2014 by Eloy
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))

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

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

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

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

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