bugGNU Octave - Bugs: bug #37033, diff / wrong computation of second...

 
 

bug #37033: diff / wrong computation of second order differences

Submitter:  None
Submitted:  Sun 05 Aug 2012 05:25:34 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  cdf
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 06 Aug 2012 03:51:22 PM UTC, comment #3: 

OK, the patch has been applied to the stable branch:

http://hg.savannah.gnu.org/hgweb/octave/rev/15118

so it be included in the 3.6.3 release later this month.


Carlo de Falco <cdf>
Group Member
Mon 06 Aug 2012 02:15:00 PM UTC, comment #2: 

Thank you for confirming the bug and applying the patch.

Concerning the changelog, I prefer anonymity over credit. :-)

Best regards!

Anonymous
Mon 06 Aug 2012 07:34:02 AM UTC, comment #1: 

I see the same incorrect result in the development sources.
I'll apply the patch, could you please provide your name and email so that credit can be given to you in the changelog message?

thanks!

Carlo de Falco <cdf>
Group Member
Sun 05 Aug 2012 05:25:34 PM UTC, original submission:  

Example:


octave:11> A = [1 2 5; 3 4 1]
A =

   1   2   5
   3   4   1

octave:12> diff(A, 1, 2)
ans =

   1   3
   1  -3

octave:13> diff(diff(A, 1, 2), 1, 2)
ans =

   2
  -4

octave:14> diff(A, 2, 2)
ans =

   4
  -2


Commands in lines 13 and 14 should produce the same result.

Attached you can find a patch against octave-3.6.2.

Thank you!

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #26322:  mx-inlines.cc.patch added by None (409B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cdf (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-08-06 cdf StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2012-08-06 cdf StatusNone Confirmed
        Assigned toNone cdf
        Release3.6.2 dev
    2012-08-05 None Attached File- Added mx-inlines.cc.patch, #26322

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code