|
From: | Daniel J Sebald |
Subject: | Re: Preserving signbit for range operator |
Date: | Mon, 25 Feb 2013 16:17:58 -0600 |
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 02/25/2013 03:57 PM, Michael D. Godfrey wrote:
On 02/25/2013 04:11 PM, Daniel J Sebald wrote:octave:28> [-0:3:5] ans = 0 3 which is not abiding by the definition.But, this is what Matlab gets.
Does -0 by itself produce -0 or 0? If the former, then Matlab isn't abiding by its definition. If the latter, then somehow -0 has to be input for some variable to test.
Dan PS: The case where the increment is zero is defined to be empty.
[Prev in Thread] | Current Thread | [Next in Thread] |