Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB QUESTION!! 21)The equation of a circle in a plane with radius R and a center at point is given (x-xo)2+(y-yo)2-R2(x-x0)2+(y-y0)2-R2 The equation can also

MATLAB QUESTION!!

image text in transcribed

21)The equation of a circle in a plane with radius R and a center at point is given (x-xo)2+(y-yo)2-R2(x-x0)2+(y-y0)2-R2 The equation can also be written in the form -2x0x-2yoy+c=-(x2+y2) where c5x20ty20-R2-2x0x-2y0y+c=-(x2+y2) wher e c=x02+y02-R2 Given the coordinates of three points (x,, y), (X2, y) and (xa, y) it is possible to determine the radius and the coordinates of the center of the circle 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 Xo, o, 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)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions