Cody

Solution 2181578

Submitted on 30 Mar 2020
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   Fail
Ec = 37; Ef = 100; Em = 10; ff = 0.30; [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff); assert(abs(Ec_other - 13.6986) < 1e-4) assert(u_or_l == 1)

Undefined function 'rule_of_mixtures_opp_bound' for input arguments of type 'double'. Error in Test1 (line 5) [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);

2   Fail
Ec = 13.6986; Ef = 100; Em = 10; ff = 0.30; [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff); assert(abs(Ec_other - 37) < 1e-4) assert(u_or_l == 0)

Undefined function 'rule_of_mixtures_opp_bound' for input arguments of type 'double'. Error in Test2 (line 5) [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);

3   Fail
Ec = 23.5; Ef = 100; Em = 10; ff = 0.15; [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff); assert(abs(Ec_other - 11.5607) < 1e-4) assert(u_or_l == 1)

Undefined function 'rule_of_mixtures_opp_bound' for input arguments of type 'double'. Error in Test3 (line 5) [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);

4   Fail
Ec = 11.5607; Ef = 100; Em = 10; ff = 0.15; [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff); assert(abs(Ec_other - 23.5) < 1e-4) assert(u_or_l == 0)

Undefined function 'rule_of_mixtures_opp_bound' for input arguments of type 'double'. Error in Test4 (line 5) [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);

5   Fail
Ec = 11.7440; Ef = 1000; Em = 10; ff = 0.15; [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff); assert(abs(Ec_other - 158.5) < 1e-4) assert(u_or_l == 0)

Undefined function 'rule_of_mixtures_opp_bound' for input arguments of type 'double'. Error in Test5 (line 5) [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);

6   Fail
Ec = 158.5; Ef = 1000; Em = 10; ff = 0.15; [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff); assert(abs(Ec_other - 11.7440) < 1e-4) assert(u_or_l == 1)

Undefined function 'rule_of_mixtures_opp_bound' for input arguments of type 'double'. Error in Test6 (line 5) [Ec_other,u_or_l] = rule_of_mixtures_opp_bound(Ec,Ef,Em,ff);

Suggested Problems

More from this Author139