Cody

# Problem 1261. Find the definite integral of various linear functions

Solution 1227816

Submitted on 9 Jul 2017
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 = '3*x'; lower=0; upper=3; y_correct = 0; assert(isequal(myintegrate(x,lower,upper),y_correct))

Output argument "y" (and maybe others) not assigned during call to "myintegrate". Error in TestPoint1 (line 4) assert(isequal(myintegrate(x,lower,upper),y_correct))

2   Fail
x = '6*x'; lower=2; upper=6; y_correct = 0; assert(isequal(myintegrate(x,lower,upper),y_correct))

Output argument "y" (and maybe others) not assigned during call to "myintegrate". Error in TestPoint2 (line 4) assert(isequal(myintegrate(x,lower,upper),y_correct))

3   Fail
x = '2*x'; lower=0; upper=2; y_correct = 0; assert(isequal(myintegrate(x,lower,upper),y_correct))

Output argument "y" (and maybe others) not assigned during call to "myintegrate". Error in TestPoint3 (line 4) assert(isequal(myintegrate(x,lower,upper),y_correct))