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 ]
Flag
display_determinant_barswas implemented in commit [ 9eb0dc ].Haven't decided if we still want to also be able to display determinant as
det ....Related
Commit: [9eb0dc]