Crea una función que permita calcular los puntos de corte con los ejes X e Y de una función cuadrática indicada por el usuario en base a la siguiente ecuación:
y = a*x^2+b*x+c
Donde el usuario introducirá los parámetros a, b y c
- Ejemplo
Dada la función cuadrática y = -2*x^2-12*x-10, se obtiene que los puntos de corte con el eje X son P1(-5,0) y P2(-1,0), así como el punto de corte con el eje Y P3(0,-10).
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers19
Suggested Problems
-
588 Solvers
-
13210 Solvers
-
452 Solvers
-
908 Solvers
-
299 Solvers
More from this Author4
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Hello, Pablo López. I hope you won't mind me writing in English. Could you please check the results for case three in your Test Suite? In my Solution 1523771 I am getting different values for the x-intercepts. (I think that's what is sought, but sorry if my rough translation was in error.) Also, I cannot see any instruction as to the order in which to return the points. For example, in test case one, why is [-5 -1 -10] correct, but [-1 -5 -10] would not be accepted? —DIV
The roots must be sorted, and the value at y must come at last. Please, fix the 3rd case. The roots are with their signs misplaced (use the function roots to test it).
I believe that the test suite is now functioning properly, presuming sorted roots.