MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
bartleby

Videos

Textbook Question
Book Icon
Chapter 4, Problem 21P

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

Blurred answer

Chapter 4 Solutions

MATLAB: An Introduction with Applications

Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill
Text book image
College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Text book image
Intermediate Algebra
Algebra
ISBN:9780998625720
Author:Lynn Marecek
Publisher:OpenStax College
Text book image
College Algebra
Algebra
ISBN:9781305115545
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:Cengage Learning
Text book image
Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:9781305071742
Author:James Stewart, Lothar Redlin, Saleem Watson
Publisher:Cengage Learning
Text book image
Elementary Algebra
Algebra
ISBN:9780998625713
Author:Lynn Marecek, MaryAnne Anthony-Smith
Publisher:OpenStax - Rice University
Implicit Differentiation Explained - Product Rule, Quotient & Chain Rule - Calculus; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=LGY-DjFsALc;License: Standard YouTube License, CC-BY