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

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

[Octave-bug-tracker] [bug #32040] ppval fails after use of fnder


From: anonymous
Subject: [Octave-bug-tracker] [bug #32040] ppval fails after use of fnder
Date: Mon, 03 Jan 2011 19:05:36 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

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

                 Summary: ppval fails after use of fnder
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 03 Jan 2011 07:05:35 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: JuanPi
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The following lines where giving no errors in Octave 3.2.4 (Ubuntu 10.10)


x = linspace(0,1,10);
y = sin(2*pi*3*x);
pp = spline(x, y);
xi = 0:0.3:1;
yi = ppval(pp,xi);
ppd = fnder(pp,1);
dyi = ppval(ppd,xi);


In 3.3.54 and the repository version the last line gives the following error


error: ppval: A(I,J,...): index to dimension 2 out of bounds; value 9 out of
bound 8
error: called from:
error:   ppval.m at line 69, column 4


If I change xi for


xi=linspace(0,8/9-eps,10);


then

dyi = ppval(ppd,xi);


works fine

output of 

> pkg list
Package Name       | Version | Installation directory
-------------------+---------+-----------------------
   communications *|  1.0.10 | /home/juanpi/octave/communications-1.0.10
              fpl  |   1.2.0 | /home/juanpi/octave/fpl-1.2.0
          general *|   1.2.1 | /home/juanpi/octave/general-1.2.1
               io *|  1.0.13 | /home/juanpi/octave/io-1.0.13
   linear-algebra *|   2.0.0 | /home/juanpi/octave/linear-algebra-2.0.0
    miscellaneous *|  1.0.10 | /home/juanpi/octave/miscellaneous-1.0.10
missing-functions *|   1.0.2 | /home/juanpi/octave/missing-functions-1.0.2
              msh  |   1.0.1 | /home/juanpi/octave/msh-1.0.1
              nan  |   2.3.1 | /home/juanpi/octave/nan-2.3.1
           odepkg *|  0.6.10 | /home/juanpi/octave/odepkg-0.6.10
            optim *|  1.0.15 | /home/juanpi/octave/optim-1.0.15
      optiminterp *|   0.3.2 | /home/juanpi/octave/optiminterp-0.3.2
             plot *|   1.0.8 | /home/juanpi/octave/plot-1.0.8
           signal *|  1.0.11 | /home/juanpi/octave/signal-1.0.11
          specfun *|   1.0.9 | /home/juanpi/octave/specfun-1.0.9
          splines *|   1.0.7 | /home/juanpi/octave/splines-1.0.7
       statistics *|  1.0.10 | /home/juanpi/octave/statistics-1.0.10
           struct *|   1.0.8 | /home/juanpi/octave/struct-1.0.8


Checked in the dev compiled for Ubuntu 10.10




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 03 Jan 2011 07:05:35 PM UTC  Name: config.status  Size: 132kB   By:
None

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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