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

#2650 mat_function doesn't handle degenerate case

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

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

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

Discussion

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

     
  • 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...

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