Menu

#186 Display 'determinant(...) with vertical bars and/or det ... (prefix notation)

open
nobody
5
2024-01-08
2024-01-08
No

It would be nice to display 'determinant(...) expressions (in pretty printing mode) with vertical bars and/or as det ... where det is a prefix operator and ... is just the argument (a symbol, matrix, or other expression, but without parentheses at any rate).

I don't know whether we would want to allow both, with some flag to switch between them.

About the prefix stuff, the following is enough to get started.

(%i2) :lisp (setf (get '%determinant 'dimension) 'dimension-prefix)
DIMENSION-PREFIX
(%i2) :lisp (setf (get '%determinant 'dissym) '(#\d #\e #\t #\space))
(d e t  )
(%i2) :lisp (setf (get '%determinant 'rbp) 190)
190
(%i2) m: matrix([a,b],[c,d]);
                            [ a  b ]
(%o2)                       [      ]
                            [ c  d ]
(%i3) foo:'determinant(m);
                              [ a  b ]
(%o3)                     det [      ]
                              [ c  d ]
(%i4) (1 - foo)/(1 + foo);
                                [ a  b ]
                        1 - det [      ]
                                [ c  d ]
(%o4)                   ----------------
                            [ a  b ]
                        det [      ] + 1
                            [ c  d ]

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.