|
From: | Andreas Corneliussen |
Subject: | Re: bitcmp function error? |
Date: | Wed, 26 Jun 2013 12:18:28 +0200 |
On 06/11/2013 09:48 AM, PhilipNienhuis wrote:Before reporting this as a bug you might note that Octave appears to be compatible
Andreas Corneliussen wrote
>HiAlthough in your other thread in the help-octave ML it was suggested that
>
>I've today used some time on debugging my vhdl system for errors, just to
>find out that the error were not in my VHDL code but in the testbench
>generated by an octave script.
>I have found that the bitcmp.m function of release 3.6.2 installed from
>linux mint package system (think it is ubuntu repos'es) calculates the
>two's complement of a number simply as a bitwise not and not as it should
>be (bitwise not) +1.
>
>I have corrected this on my own PC, but would like to inform you
>developers
>of the packages so that future users can be spared of the frustration of
>having to debug errors that are in the core octave system (which I think
>the majority of users, like me, assume is correct ;-)).
the developers would pick up from the maintainers list (indeed we sometimes
do), a formal bug report is much better, see:
http://www.gnu.org/software/octave/bugs.html
If you can, please attach a patch there, preferrably as a Mercurial
changeset.
Thanks,
Philip
with Matlab for bicmp(A,2) for A = 0,1,2,3. For values of A < 3 Matlab returns an error.
It is possible that Octave should do this also in order to improve compatibility.
Or, if you have a different case, please explain exactly what case fails.
Michael
[Prev in Thread] | Current Thread | [Next in Thread] |