[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #37033] diff / wrong computation of second ord
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #37033] diff / wrong computation of second order differences |
Date: |
Sun, 05 Aug 2012 17:25:35 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120403211507 Firefox/12.0 |
URL:
<http://savannah.gnu.org/bugs/?37033>
Summary: diff / wrong computation of second order differences
Project: GNU Octave
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: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.2
Operating System: GNU/Linux
_______________________________________________________
Details:
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!
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 05 Aug 2012 05:25:34 PM UTC Name: mx-inlines.cc.patch Size: 409B
By: None
<http://savannah.gnu.org/bugs/download.php?file_id=26322>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?37033>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #37033] diff / wrong computation of second order differences,
anonymous <=