Cody

Solution 2065257

Submitted on 20 Dec 2019 by Martin C.
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))

p = 2.0000 -0.0000 -0.0000 a = 2

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))

p = 1.7857 -0.3000 -0.3714 a = 0

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))

p = 6.0000 -0.0000 -0.0000 a = 6

Suggested Problems

More from this Author4