Cody

Solution 546495

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.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
%% Ef = 100; Em = 10; ff = 0.30; wt = 0.25; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 19.5240) < 10e-2)

2   Pass
%% Ef = 100; Em = 10; ff = 0.30; wt = 0.50; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 25.3493) < 10e-2)

3   Pass
%% Ef = 100; Em = 10; ff = 0.30; wt = 0.75; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 31.1747) < 10e-2)

4   Pass
%% Ef = 100; Em = 10; ff = 0.15; wt = 0.25; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 14.5455) < 10e-2)

5   Pass
%% Ef = 100; Em = 10; ff = 0.15; wt = 0.50; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 17.5303) < 10e-2)

6   Pass
%% Ef = 100; Em = 10; ff = 0.15; wt = 0.75; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 20.5152) < 10e-2)

7   Pass
%% Ef = 1000; Em = 10; ff = 0.30; wt = 0.25; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 87.4186) < 10e-2)

8   Pass
%% Ef = 1000; Em = 10; ff = 0.30; wt = 0.50; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 160.6124) < 10e-2)

9   Pass
%% Ef = 1000; Em = 10; ff = 0.30; wt = 0.75; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 233.8062) < 10e-2)

10   Pass
%% Ef = 1000; Em = 10; ff = 0.15; wt = 0.25; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 48.4330) < 10e-2)

11   Pass
%% Ef = 1000; Em = 10; ff = 0.15; wt = 0.50; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 85.1220) < 10e-2)

12   Pass
%% Ef = 1000; Em = 10; ff = 0.15; wt = 0.75; [Ec] = rule_of_mixtures_wt_bound(Ef,Em,ff,wt); assert(abs(Ec - 121.8110) < 10e-2)