octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preserving signbit for range operator


From: Michael D. Godfrey
Subject: Re: Preserving signbit for range operator
Date: Mon, 25 Feb 2013 15:17:26 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130219 Thunderbird/17.0.3

On 02/25/2013 03:03 PM, Daniel J Sebald wrote:
[-3:-0] -> [-3 -2 -1 0]
[-0:3] -> [-0 1 2 3]
This is at least "controversial."  Sorts treat -0 and 0 as equal, but
they have to be recognized as different for various purposes such
as getting the directions right for functions of complex variables.
So, it seems clear to me that the "right" result for the first line
above is:  [-3:-0] -> [-3 -2 -1 -0].

I cannot think of an argument for not doing this.

Michael



reply via email to

[Prev in Thread] Current Thread [Next in Thread]