Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Function diag(alist) changes the input list into a list of matrices without any warning.

termso
2013-06-28
2013-06-28
  • termso
    termso
    2013-06-28

    I do not think the diag() function should do stuff like this behind my back.
    Does anyone have a opinion on this?

    Maxima 5.28.0-2 http://maxima.sourceforge.net
    using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (a.k.a. GCL)
    Distributed under the GNU Public License. See the file COPYING.
    Dedicated to the memory of William Schelter.
    The function bug_report() provides bug reporting information.
    (%i2) display2d : false$
    (%i3) load(diag)$
    (%i4) x : [1,2,3]$
    (%i5) y : diag(x);
    (%o5) matrix([1,0,0],[0,2,0],[0,0,3])
    (%i6) x;
    (%o6) [matrix([1]),matrix([2]),matrix([3])]
    

    Software:
    Windows: wxMaxima 12.04.0 is included with Maxima 5.28.0

     
    Last edit: termso 2013-06-28