[Top][All Lists]

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

[Octave-bug-tracker] [bug #41448] ppval returns wrong dimensions for sca

From: Markus Appel
Subject: [Octave-bug-tracker] [bug #41448] ppval returns wrong dimensions for scalar valued polynomial
Date: Mon, 03 Feb 2014 20:10:45 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0


                 Summary: ppval returns wrong dimensions for scalar valued
                 Project: GNU Octave
            Submitted by: mappel
            Submitted on: Mon 03 Feb 2014 08:10:44 PM GMT
                Category: Octave Function
                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.8.0
        Operating System: GNU/Linux



YI = ppval (PP, XI) is documented with:
"If PP describes a scalar polynomial function, the result is an array of the
same shape as XI."


octave:35> ppval ( mkpp([0 1],1), magic(3) )
ans =

ans(:,:,1) =

   1   1   1

ans(:,:,2) =

   1   1   1

ans(:,:,3) =

   1   1   1

I would the result expect to be a 3x3 matrix, i.e. :

assert ( ppval ( mkpp([0 1],1), magic(3) ) , ones(3,3) )

I checked in Matlab R2012b, there the function ppval returns a 3x3 matrix as


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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