Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you find the width of a circle from any given y position? [closed]

I was wondering if anybody knew how to find the width of a circle in any given y position. For example, lets say you have a unit circle, the radius is 100 units tall. Now three fourths the way up the circle, 25 units above the center of the circle, there is a line parallel to the x axis that extends from one edge of the circle to the other. it looks a bit like this.

How big is that line, and what algorithm did you use to solve this?

like image 740
I. C. Avatar asked Sep 18 '25 11:09

I. C.


1 Answers

First, label what you know:

Circle Labeled

Looks like a triangle to me.

Now, solve for X and double it:

x^2 + 25^2 = 100^2 (Pythagorean theorem)

x^2 = 9375 (Simplify)

x = 96.8 (Square root both sides, now we know x)

Length of chord: 193.6 (Length of chord is 2 times x)

Here is a site that can help you: http://www.mathopenref.com/chord.html

Since you tagged your question with Scratch, here is a function to help you:

Solution in scratch

like image 114
BoltBait Avatar answered Sep 21 '25 02:09

BoltBait