Menu

#2650 mat_function doesn't handle degenerate case

None
closed
None
5
2014-02-19
2013-10-29
No

mat_function(identity,matrix([a])) => Error: "argument must be a non-atomic expression"

Presumably mat_function(f,matrix([a])) == matrix([f(a)]).

Discussion

  • Stavros Macrakis

    Sorry, I should have mentioned this is using the (updated) diag.mac package in share.

     
  • Rupert Swarbrick

    Oh dear, that's my fault. I've just pushed a fix (54f9742), although I'm not convinced that Maxima isn't doing something weird. The behaviour that triggers the bug in diag.mac is that matrix([1]) . matrix([1]) yields 1, rather than a matrix.

    The result still isn't brilliant, since it turns into matrix([1]) . a, but at least it doesn't explode any more...

     
  • Rupert Swarbrick

    • status: open --> closed
    • assigned_to: Rupert Swarbrick
     

Log in to post a comment.