[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54342] rand() produces different results on o
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions |
Date: |
Fri, 20 Jul 2018 13:05:51 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Update of bug #54342 (project octave):
Severity: 3 - Normal => 2 - Minor
Priority: 5 - Normal => 3 - Low
Item Group: Incorrect Result => Regression
Status: None => Confirmed
Operating System: Microsoft Windows => Any
_______________________________________________________
Follow-up Comment #1:
Confirmed, that there is a difference when using 'Inf' as a seed. On the
other hand, 'Inf' is not generally a seed value I would choose. For finite
state values like 1, -5, pi, the random number generator produces equivalent
results. I am marking the bug as a regression, but lowering the priority
since there is the very easy workaround of not using Inf as a seed state.
For reference with respect to other non-finite values:
Octave 4.2.2
octave:2> format long
octave:3> rand ("state", -Inf)
octave:4> rand
ans = 0.844421851525048
octave:5> rand ("state", NaN)
octave:6> rand
ans = 0.844421851525048
octave:7> rand ("state", Inf)
octave:8> rand
ans = 0.844421851525048
Octave 4.4.0
octave:2> format long
octave:3> rand ("state", -Inf)
octave:4> rand
ans = 8.444218515250481e-01
octave:5> rand ("state", NaN)
octave:6> rand
ans = 8.444218515250481e-01
octave:7> rand ("state", Inf)
octave:8> rand
ans = 6.353574441341173e-01
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?54342>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Ian McCallion, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions,
Rik <=
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Ian McCallion, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Dan Sebald, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Dan Sebald, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Dan Sebald, 2018/07/20
- [Octave-bug-tracker] [bug #54342] rand() produces different results on octave 4.4.0 compared to earlier versions, Rik, 2018/07/22