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


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

Submitted by:  None
Submitted on:  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:  Carlo de Falco <cdf>
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  dev
Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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

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


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

Carlo de Falco <cdf>
Project MemberIn charge of this item.
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!

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?


Carlo de Falco <cdf>
Project MemberIn charge of this item.
Sun 05 Aug 2012 05:25:34 PM UTC, original submission:  


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 =


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


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

Attached you can find a patch against octave-3.6.2.

Thank you!



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

Attach Files:

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)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.5