From: Leo B. <Leo...@um...> - 2024-03-27 17:31:27
|
Try your example with: scalarmatrixp: false$ before you try: u^^(-1); It seems like a bug that ^^ signals an error when u is a 1x1 matrix but scalarmatrixp is true; I would expect ^^ to gracefully punt to ^. Leo On Wed, Mar 27 2024, Igor Pesando <ipe...@gm...> wrote: > Hi * > > I came across this weird behavior. > > I'm not sure it is wanted even I could imagine some reasons why it is so. > > %i1) u:ident(1); > (%o1) [ 1 ] > (%i2) matrixp(u); > (%o2) true > (%i3) u^^(-1); > > not a matrix: 1 > -- an error. To debug this try: debugmode(true); > > (%i1) q:ident(1); > (%o1) [ 1 ] > (%i2) q.q ; > (%o2) 1 > (%i3) matrixp(q.q); > (%o3) false > > Bests > > Igor P > > > > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > -- --- Best regards, Dr Butler |