[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is this a numerical problem?
From: |
Ozzy Lash |
Subject: |
Re: Is this a numerical problem? |
Date: |
Thu, 19 Aug 2010 10:17:59 -0500 |
2010/8/19 Jordi Gutiérrez Hermoso <address@hidden>:
> On 19 August 2010 09:38, George Barrick <address@hidden> wrote:
>
>> May I suggest that you cut the guy some slack? Lukas, that is. You
>> should not be telling him to submit a bug report, because the
>> phenomenon that he is describing is not a bug. If you're telling him
>> to submit because his bug report will be ignored; OK.
>
> I don't think that's the intent at all. While it's common for
> neophytes to be uncomfortable with the vagaries of IEEE 754
> arithmetic, there is quite possibly at least a cosmetic bug here in
> how Octave is representing a number, namely, it doesn't display the
> same thing Matlab does. I do believe current trend is to consider most
> Matlab incompatibilities as bugs. It's a question of output, not an
> actual functionality bug.
I think, reading the original e-mail, that he is getting the same
result with Matlab R2009a. Specifically:
>>> The same with R2009a:
>>>
>>> >> a = (10 * rem (-12/5, 1))
>>>
>>> a =
>>>
>>> -4.0000
>>>
>>> >> fix (a)
>>>
>>> ans =
>>>
>>> -3
>>>
>>> >> a+4
>>>
>>> ans =
>>>
>>> 8.8818e-16
>>>
- Re: Is this a numerical problem?, (continued)
- Message not available
- Re: Is this a numerical problem?, Jaroslav Hajek, 2010/08/19
- Re: Is this a numerical problem?, Lukas Reichlin, 2010/08/19
- Re: Is this a numerical problem?, Sergei Steshenko, 2010/08/19
- Re: Is this a numerical problem?, Jaroslav Hajek, 2010/08/19
- Re: Is this a numerical problem?, Miguel Bazdresch, 2010/08/19
- Re: Is this a numerical problem?, Lukas Reichlin, 2010/08/19
- Re: Is this a numerical problem?, Jaroslav Hajek, 2010/08/19
- Re: Is this a numerical problem?, Lukas Reichlin, 2010/08/19
- Re: Is this a numerical problem?, George Barrick, 2010/08/19
- Re: Is this a numerical problem?, Jordi Gutiérrez Hermoso, 2010/08/19
- Re: Is this a numerical problem?,
Ozzy Lash <=
- Re: Is this a numerical problem?, Jordi Gutiérrez Hermoso, 2010/08/19
- Re: Is this a numerical problem?, Judd Storrs, 2010/08/19
- Re: Is this a numerical problem?, Jordi Gutiérrez Hermoso, 2010/08/19
- Re: Is this a numerical problem?, Lukas Reichlin, 2010/08/19
- Re: Is this a numerical problem?, Judd Storrs, 2010/08/19
- Re: Is this a numerical problem?, Jaroslav Hajek, 2010/08/19
- Re: Is this a numerical problem?, Judd Storrs, 2010/08/19
- Re: Is this a numerical problem?, George Barrick, 2010/08/19