Cody

Solution 1730362

Submitted on 19 Feb 2019 by Alfonso Nieto-Castanon
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
x = [-2 -1 0 1 2]; y = [8 2 0 2 8]; a_correcta = 2; assert(isequal(comprobacion_parabola(x,y),a_correcta))

2   Pass
x = [-2 -1 0 1 2]; y = [8 0 1 1 6]; a_correcta = 0; assert(isequal(comprobacion_parabola(x,y),a_correcta))

3   Pass
x = [-3 -1.5 0 1.5 3]; y = [54 13.5 0 13.5 54]; a_correcta = 6; assert(isequal(comprobacion_parabola(x,y),a_correcta))