Given 3 points, each defined by x and y, compute the coefficients: [a,b,c] of a parabola with equation: y = ax^2 + bx + c passing through those points. Also solve for the location of its vertex: [xv,yv].
Example:
Inputs: D = [0 3]; E = [1 6]; F = [-1 2] Outputs: C = [1 2 3]; V = [-1 2] Hence, the quadratic equation is: y = x^2 +2x + 3, with vertex at (-1,2)
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers23
Suggested Problems
-
Determine if a Given Number is a Triangle Number
401 Solvers
-
Implement a bubble sort technique and output the number of swaps required
402 Solvers
-
Create Volcano (or Atoll) martix. It is an extension of Bullseye matrix problem.
163 Solvers
-
Sum the real and imaginary parts of a complex number
145 Solvers
-
Regular polygon bounded by and bounding a circle
46 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
It would be better to add more test cases to reinforce the test suite.
Thanks I just updated!