The equation of a circle in a plane with radius R and a center at point (x0, y0) is given by:
(x-x0)2+(y-y0)2=R2 The equation can also be written in the form:
-2x0x-2y0y+c=- (x2+y2) where c =x20+ y20-R2 Given the coordinates of three points (x1, y1) (x2, y2), and (x3, y3) it is possible to determine the radius and the coordinates of the center of the circ le that passes through the three points. This is done by substituting the coordinate of each of the points in the equation and solving the system of three linear equations for x0, y0, and c.
Write a program in a script file that calculates the coordinates of the center and the radius of a circle that passes through three given points. When executed the program asks the user to enter the coordinates of the three points. The program then calculates the center and radius and displays the results in the following format: “The coordinates of the center are (xx.x, xx.x) and the radius is xx.x.”, where xx.x stands for the calculated quantities rounded to the nearest tenth. Execute the program entering the following three points: (11.5, 5). (3.2, 8.6). and (-4.5, -6.8).
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
MATLAB: An Introduction with Applications
- Find the distance between the point 3,2 and the line 3x+5y=2.arrow_forwardFind the equation of the line perpendicular to the line y=3 and passing through the midpoint of the segment joining 2, 4 and -6, 10.arrow_forwardExplain in words how you plot the point (4,2) in a rectangular coordinate system.arrow_forward
- Glencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw HillCollege Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage Learning
- College AlgebraAlgebraISBN:9781305115545Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage LearningAlgebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage LearningElementary AlgebraAlgebraISBN:9780998625713Author:Lynn Marecek, MaryAnne Anthony-SmithPublisher:OpenStax - Rice University