rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

1x1 matrix problems: inversion, multiplication #2642

Open rtoy opened 3 months ago

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-06 17:09:15 Created by macrakis on 2018-02-05 22:04:48 Original: https://sourceforge.net/p/maxima/bugs/3394


matrix([x])^^-1 => not a matrix: 1/x -- an error ident(1)^^-1 => not a matrix: 1 -- an error

matrix([x]).matrix([1/x]) => 1 ... shouldn't this be matrix([1]) == ident(1)?

Maxima version: "5.41.0a_dirty" Maxima build date: "2017-10-23 00:00:44" Host type: "i686-w64-mingw32" Lisp implementation type: "SBCL" Lisp implementation version: "1.3.12"

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-06 17:09:16 Created by macrakis on 2018-02-05 22:10:21 Original: https://sourceforge.net/p/maxima/bugs/3394/#22a6


Hmm, with scalarmatrixp=true, I guess result of 1 (rather than ident(1)) is correct. But the other cases are still bad.