Talk:Length of an arc between two angles: Difference between revisions

(→‎Task needs clarification: Further comments.)
 
(One intermediate revision by one other user not shown)
Line 18:
 
::Several interpretations are possible but a consensus seems to have formed that the Julia approach is what's intended. So, unless and until we hear from the author otherwise, I've decided to go with that. Have amended the task description accordingly so it's now clear enough to be treated as a draft task. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 10:03, 16 March 2020 (UTC)
 
"Major arc" has a clear definition that should have been given in the task description. From Wikipedia:
Every pair of distinct points on a circle determines two arcs. If the two points are not directly opposite each other, one of these arcs, the minor arc, will subtend an angle at the centre of the circle that is less than π radians (180 degrees), and the other arc, the major arc, will subtend an angle greater than π radians. It's unfortunate that the solutions offered are doing something else.
 
== normalization of angles ==
 
Perhaps it should be mentioned that the angles should be normalized to a unit circle.   It's simple enough to add angle normalization to the code.   Negative angles can be a concern, depending on how one interprets "which" arc is intended.     -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 13:31, 16 March 2020 (UTC)
Anonymous user