Talk:Length of an arc between two angles

From Rosetta Code
Revision as of 18:07, 15 March 2020 by PureFox (talk | contribs) (Created discussion page requesting clarification of the task.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Task needs clarification

I'm not sure we can even treat this as a draft task until the author clarifies certain aspects.

First of all angles 1 and 2 in the linked diagram are points on the circumference, not angles, so I assume you mean they are the angles between the chord drawn between them and lines drawn from the center of the circle to those points?

If we already know these two angles, it seems to me that the coordinates of the center of the circle are irrelevant so we don't need 'xpos' and 'ypos'.

The two points on the circumference together with the center of the circle will, of course, form a triangle and the angle at the center is therefore going to be (180 - angle1 - angle2). The total angle at the center is 360 and the larger component will then be (180 + angle1 + angle2). The larger of the two arcs can then be found by splitting the circumference in the proportion which this angle bears to 360 degrees.

Is this what you're intending us to do? --PureFox (talk) 18:07, 15 March 2020 (UTC)