rtoy / maxima

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

matrix inversion broken with doallmxops:false #790

Open rtoy opened 4 days ago

rtoy commented 4 days ago

Imported from SourceForge on 2024-07-03 11:27:39 Created by macrakis on 2020-12-18 17:36:07 Original: https://sourceforge.net/p/maxima/bugs/3690


M: matrix([1,2],[3,4]) doscmxops => true (check default) M^^-1 => matrix([-2,1],[3/2,-1/2]) OK M^^2 => matrix([7,10],[15,22]) OK

but

doallmxops:false$ M^^-1 => ERROR not a matrix: -matrix([4,-2],[-3,1])/2

I believe this is a bug in two ways:

Apparently, internally, it's depending on doallmxops being true.

Maxima 5.44.0, SBCL 2.0.0, Windows 10

rtoy commented 4 days ago

Imported from SourceForge on 2024-07-03 11:27:40 Created by macrakis on 2020-12-18 17:44:43 Original: https://sourceforge.net/p/maxima/bugs/3690/#cbfd


Diff:


--- old
+++ new
@@ -14,3 +14,5 @@
 * M^^2 isn't controlled by **doallmxops**; why is ^^-1?

 Apparently, internally, it's depending on doallmxops being true.
+
+Maxima 5.44.0, SBCL 2.0.0, Windows 10