[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56342] function unifrnd(0, 0) returns "NaN",
From: |
Liming He |
Subject: |
[Octave-bug-tracker] [bug #56342] function unifrnd(0, 0) returns "NaN", but not 0. |
Date: |
Fri, 17 May 2019 17:29:43 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?56342>
Summary: function unifrnd(0,0) returns "NaN", but not 0.
Project: GNU Octave
Submitted by: liming_he
Submitted on: Fri 17 May 2019 09:29:41 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Liming He
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: GNU/Linux
_______________________________________________________
Details:
Problem description:
The function 'unifrnd' belongs to 'octave-statistics' packages. When
unifrnd(0, 0) is called, it is supposed to return 0, but it returns "NaN",
which is incompatible to the result (0) from Matlab (R2017B).
Explanation of unifrnd from Matlab:
>> help unifrnd
unifrnd Random arrays from continuous uniform distribution.
Result from Octave (version 3.8.2, 4.2 and 4.4)
octave:1> unifrnd(0,0)
ans = NaN
Result from Matlab (R2017b):
>> unifrnd(0,0)
ans =
0
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56342>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56342] function unifrnd(0, 0) returns "NaN", but not 0.,
Liming He <=
- [Octave-bug-tracker] [bug #56342] function unifrnd(0, 0) returns "NaN", but not 0., Rik, 2019/05/18
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Mike Miller, 2019/05/19
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Anthony Morast, 2019/05/21
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Anthony Morast, 2019/05/21
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Anthony Morast, 2019/05/21
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, Mike Miller, 2019/05/21
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, John Donoghue, 2019/05/28
- [Octave-bug-tracker] [bug #56342] [octave forge] (statistics) function unifrnd(0, 0) returns NaN but not 0, John Donoghue, 2019/05/28