Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

Re: Alternative atan2 (was Re: Motion 52: final ...)



John
I also considered this, but I am very short of time. so I would not mind if Michel or Vincent
will write that motion.
cheers
Jürgen
Am 27.11.2013 12:46, schrieb John Pryce:
P1788

On 2013 Nov 26, at 02:06, Vincent Lefevre wrote:
On 2013-11-25 15:35:13 -0500, Michel Hack wrote:
I just skimmed the article, and if I understand it correctly, the point
it makes is that, for intervals, the restriction of the atan2() range
to [-\pi, +\pi] would force some evaluations to return the essentially
useless [-\pi, +\pi] instead of a sharp enclosure that straddles \pi.

The same may apply to the other inverse-trig functions.
I think that atan2 is a bit particular. Do you have an example
with a conventional inverse-trig function (asin, acos, atan)?
I think atan2 is the only one that can be "improved" by this method. Basically, for any box (yy,xx) in R^2 that doesn't contain (0,0), but meets the usual branch cut of atan2, the idea is to rotate the branch cut out of the way of the box. Depending on the rule for which direction to rotate, one gets different answers for the range of the resulting function. Bill, is that right?

It's a neat idea. Jürgen, would you consider adding this to function to our list (recommended, I would say)? Who supports this?

John Pryce

--
-                Prof. Dr. Juergen Wolff von Gudenberg
     o           Lehrstuhl fuer Informatik II
    / \          Universitaet Wuerzburg, Am Hubland, D-97074 Wuerzburg
InfoII o         Tel.: +49 931 / 31 86602 Fax ../31 86603
  / \  Uni       E-Mail:wolff@xxxxxxxxxxxxxxxxxxxxxxxxxxx
 o   o Wuerzburg