> > > and I have to wake up in 5 hours for work... > > > > > > my head hurts > > > > I wish you the best of luck. Just had to re-visit algebra and trig for a work > thing. > > By the end of the day on Friday my brain was leaking. > > > > Given a known chord slice of a given circle of indeterminate size, and a know > length > > of that chords bisector, write a function that can compute the diameter of any size > > circle. > > > > //Harder than it sounds.... > > I'm having issues with english terminology here. What is known of the slice? Do you > have a diagram?
chord - line segment that has two endpoints anywhere on the circumference of the circle. (If it passes through the center, then it is the diameter.)
line segment bisector - line that passes through the midpoint of the line segment.
I think he meant to say "perpendicular bisector". But I could be wrong.
[EDIT] And I think he's truncating the perpendicular bisector at the midpoint of the chord. Although that's an assumption. In other words...
The length of line segment AB is known, write an equation to solve for the diameter.
... wait, I have the same problem. Does "known chord slice" mean length of PQ is known?
Anyhow, if all my assumptions are correct...
R=(AB²+0.25PQ²)/2AB D=(AB²+0.25PQ²)/AB
But if it's not a perpendicular bisector, and/or if PQ is not known...
- Stiletto
Edited by Stiletto (03/20/13 04:17 PM)
|