[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31871] interp1 gives the wrong result for cub
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #31871] interp1 gives the wrong result for cubic interpolation |
Date: |
Tue, 14 Dec 2010 02:53:50 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.215 Safari/534.10 |
URL:
<http://savannah.gnu.org/bugs/?31871>
Summary: interp1 gives the wrong result for cubic
interpolation
Project: GNU Octave
Submitted by: bpabbott
Submitted on: Mon 13 Dec 2010 09:53:49 PM EST
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Mac OS
_______________________________________________________
Details:
Simple example ...
x = [1:4, 10];
f = @(x) polyval ([0 1 1], x);
interp1 (x, f(x), x, "cubic")
ans = 2.0000 3.0000 4.0000 5.0000 291.0000
f(x)
ans = 2 3 4 5 11
I see the same result for 3.0.5 and the developer's sources.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31871>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #31871] interp1 gives the wrong result for cubic interpolation,
Ben Abbott <=