(41) Intersection points between circles
|
11-25-2020, 03:07 PM
(This post was last modified: 03-20-2021 08:39 PM by Gene.)
Post: #1
|
|||
|
|||
(41) Intersection points between circles
Hi,
if somebody else already did a program to find the intersection points of two circles I could not find it. So here is mine: Program CIP Program to determine the intersection points of two circles. Circles are defined by coordinates of central point and radius. Output is coordinates of the intercept points of the two circles. If there is no solution message is given. If both solutions are the same there is only 1 solution. Use of registers: Circle 1: Coordinates of midpoint: x: 01, y: 02 Radius: 03 Circle 2: Coordinates of midpoint: x: 04, y: 05 Radius: 06 07: Distance between the two midpoints. 08: Angle between x-axis and line between midpoints 09: Angle at midpoint of first circle of the triangle formed by midpoints and first intersection of cycles 10: For computation Output: Coordinates of intersection points: Point 1: x: 11, y: 12; Point 2: x: 13, y: 14 Flags used: 01, 02 Example: Circle 1 has the central point x=13, y=4 and the radius 6.8 Circle 2 has the central point x=6, y=10 and the radius 4 Keystrokes: XEQ Alpha CIP Alpha -> CIRCLE1? 13 ENTER 4 ENTER 6.8 R/S -> CIRCLE2? 6 ENTER 10 ENTER 4 R/S -> 9.9987 (x-value of 1st intersection point) X<>Y 10.1018 (y-value of 1st intersection point) – R/S - -> 6.5109 (x-value of 2nd intersection point) X<>Y 6.0328 (y-value of 2nd intersection point) A revised version that is shorter and does not use Flag 02 is below. Thanks to Albert Chan who showed me ways to improve the program! Code: 01 LBL „CIP“ |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(41) Intersection points between circles - rawi - 11-25-2020 03:07 PM
RE: Intersection points between circles - Albert Chan - 11-25-2020, 06:16 PM
RE: Intersection points between circles - rawi - 11-25-2020, 06:48 PM
RE: Intersection points between circles - Albert Chan - 11-26-2020, 12:22 AM
RE: Intersection points between circles - Albert Chan - 11-30-2020, 02:19 PM
RE: Intersection points between circles - rawi - 11-30-2020, 05:19 PM
RE: Intersection points between circles - Albert Chan - 11-30-2020, 09:03 PM
RE: Intersection points between circles - Albert Chan - 12-01-2020, 12:17 AM
RE: Intersection points between circles - SlideRule - 11-30-2020, 08:51 PM
RE: Intersection points between circles - rawi - 12-01-2020, 09:25 AM
RE: Intersection points between circles - Albert Chan - 12-01-2020, 11:59 AM
RE: Intersection points between circles - rawi - 12-01-2020, 02:04 PM
RE: Intersection points between circles - Albert Chan - 12-10-2020, 01:34 PM
|
User(s) browsing this thread: 1 Guest(s)