|
From: | Daniel J Sebald |
Subject: | Re: Sorting complex values |
Date: | Sat, 27 Sep 2014 13:47:02 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 09/27/2014 01:43 PM, Daniel J Sebald wrote:
-3pi, -pi, pi, 3pi, ... but that is a secondary use. So even though atan(-1,-0) might produce -pi, maybe anything with -0 as the imaginary component should be set equal to pi for the argument.
Or, if (atan(X,Y) == -pi) arg = pi; would also account for numerical discrepancies. Dan
[Prev in Thread] | Current Thread | [Next in Thread] |