Cody

Solution 1818688

Submitted on 17 May 2019
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
x = [1.085 1.005]; y_correct = 10.48; assert(isequal(brew_ABV(x),y_correct))

b = 1.0050 1.0850 a = -10.4800 y = -10.4800

Assertion failed.

2   Fail
x = [1.063 1.01]; y_correct = 6.94; assert(isequal(brew_ABV(x),y_correct))

b = 1.0100 1.0630 a = -6.9430 y = -6.9400

Assertion failed.

3   Fail
x = [1.00 1.02]; y_correct = 0; assert(isequal(brew_ABV(x),y_correct))

b = 1.0000 1.0200 a = -2.6200 y = -2.6200

Assertion failed.

4   Pass
x = [1.00 1.00]; y_correct = 0; assert(isequal(brew_ABV(x),y_correct))

b = 1 1 a = 0 y = 0

Suggested Problems

More from this Author4