Cody

Solution 1396131

Submitted on 28 Dec 2017 by Alekhya Makineni
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
before = 54.3; after = 46.5; y_correct = 4; assert(isequal(fcn(before,after),y_correct))

calculated = 50.0429 calculated = 48.0412 calculated = 46.1195

2   Pass
before = 65.0; after = 50.0; y_correct = 7; assert(isequal(fcn(before,after),y_correct))

calculated = 59.9040 calculated = 57.5078 calculated = 55.2075 calculated = 52.9992 calculated = 50.8793 calculated = 48.8441

3   Pass
before = 95.7; after = 55.5; y_correct = 14; assert(isequal(fcn(before,after),y_correct))

calculated = 88.1971 calculated = 84.6692 calculated = 81.2825 calculated = 78.0312 calculated = 74.9099 calculated = 71.9135 calculated = 69.0370 calculated = 66.2755 calculated = 63.6245 calculated = 61.0795 calculated = 58.6363 calculated = 56.2909 calculated = 54.0392