octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #31098] Incompatible spline behaviour


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #31098] Incompatible spline behaviour
Date: Wed, 22 Sep 2010 07:51:44 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060214 Firefox/3.0.11

URL:
  <http://savannah.gnu.org/bugs/?31098>

                 Summary: Incompatible spline behaviour
                 Project: GNU Octave
            Submitted by: caliari
            Submitted on: Wed 22 Sep 2010 07:51:43 AM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Improvement/Optimization
                  Status: None
             Assigned to: None
         Originator Name: Marco
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.3.51
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Dear all,

while trying to implement a new bicubic.m function, I encountered the
following incompatible behavior with spline.m: when only three Thorsten Meyer
points X (and three values Y) are given, a unique quadratic interpolant should
be constructed. Besides compatibility, this approach improves a lot the
interpolation behavior with strongly not-equispaced X points. Try the
difference with (example taken by Thorsten Meyer)

x = [0,1,20];
y = x.^3;
xx = linspace(0,20,100);
yy = spline(x,y,xx);
plot(xx,yy)

with and without the enclosed patch.

Best regards,

Marco



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 22 Sep 2010 07:51:43 AM GMT  Name: spline.m.diff  Size: 1kB   By:
caliari

<http://savannah.gnu.org/bugs/download.php?file_id=21517>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31098>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]