[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is this a numerical problem?
From: |
Jaroslav Hajek |
Subject: |
Re: Is this a numerical problem? |
Date: |
Thu, 19 Aug 2010 10:51:00 +0200 |
On Thu, Aug 19, 2010 at 10:39 AM, Lukas Reichlin
<address@hidden> wrote:
> Dear Octave community
>
> I'm using Octave 3.2.4 from MacPorts on MacOSX 10.6.4 running on an Intel
> Core 2 Duo. I noticed a behaviour which seems strange to me. Does someone
> have a good explanation for the results below?
>
> octave:60> a = (10 * rem (-12/5, 1))
> a = -4.00000000000000 # a < -4
Stop right there and ask yourself where you did that # a < -4 from.
Surely you've tested it, right? :D
--
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
- Is this a numerical problem?, Lukas Reichlin, 2010/08/19
- Re: Is this a numerical problem?,
Jaroslav Hajek <=
- Re: Is this a numerical problem?, Lukas Reichlin, 2010/08/19
- 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