[SciPy-Dev] N.angle(nan)

Robert Kern robert.kern at gmail.com
Wed Mar 3 12:18:30 EST 2010


On Wed, Mar 3, 2010 at 10:39, David Goldsmith <d.l.goldsmith at gmail.com> wrote:
> On Wed, Mar 3, 2010 at 7:43 AM, Robert Kern <robert.kern at gmail.com> wrote:
>>
>> On Wed, Mar 3, 2010 at 02:28, David Goldsmith <d.l.goldsmith at gmail.com>
>> wrote:
>> > Hi!  N.angle(z) returns nan if either z.real or z.imag is nan;
>> > presently,
>> > this is not documented in its docstring, but it is traceable to the
>> > low-level c functions N.angle uses to do its work, so I'm assuming it's
>> > a
>> > bug in the doc, not in the code, i.e., is intended behavior, correct?
>>
>> It is intended behavior. I'm not sure it *needs* to be documented or
>> that it's a doc bug that it isn't explicitly mentioned. If we were
>> explicit about every time an input containing a NaN generates a NaN in
>> the output, we would document nothing else. I would think this
>> behavior is obvious once you know how NaNs usually work.
>
> I thought you would say something like that.

I long for the day when I can be replaced by a machine that will
predict the appropriate curmudgeonly response I would give.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the SciPy-Dev mailing list