I started to manipulate i-output.boot

by copying the code for appmat to apptableau and changing symbol MATRIX to TABLEAU, I added a function tableau to OutputForm as matrix there and then tried to use it for a List List OutputForm:

The following error occured:

   >> System error:
   MAT does not designate a condition class.

So no clue what has to be done next.


The other way I succeeded was to use matrix and fill the empty fields with an empty space to get a whole matrix. This gives a first reasonable result as:

(203) -> )set output length 100
(203) -> tableau [[2,44444,3,5],[1,2,5555555],[22222]]

          +       2     44444         3         5+
          |                                      |
   (203)  |       1         2   5555555          |
          |                                      |
          +   22222                              +
Type: Tableau(PositiveInteger)
(204) -> [%, T2, conjugate T2]

+ 0   1   2+
|          |
           +       2     44444         3         5+  + 0   3   4 5   6+  | 3   7    |            |                                      | |                  |  |          |    (204)  [|       1         2   5555555          |, | 1   7 8        |, | 4   8    |]            |                                      | |                  |  |          |            +   22222                              +  + 2                +  | 6        |
|          |
+ 5        +
                                                             Type: List(Tableau(NonNegativeInteger))


Am 23.09.24 um 14:53 schrieb Prof. Dr. Johannes Grabmeier:
Am 23.09.24 um 11:09 schrieb Ralf Hemmecke:
On 9/23/24 09:57, Prof. Dr. Johannes Grabmeier wrote:
hence, it is really the matrix function of OutputForm, which uses an
 appropriate Lisp-function labelled by symbol 'MATRIX.

It is actually still not completely clear what you want to achieve.

this was very clear: a function in LISP/mechanism in OutputForm which piles a list of outputs WITHOUT a newline first, as I said, like printing a matrix


As one of the early AXIOM users, you certainly know about the OutputForm
mechanism.

I never programmed in BOOT/LiSP, I had hoped that something is there already


   +---+------+---+
   | 0  |     3 | 5 |
   +---+------+---+
   | 1 | 4444 | 6 |
   +---+ -----+---+
   | 2 |
   +---+

of course the current solution is not good, I already have an output without any boxes taking care of the widths of the entries.


I think you can find/modify/adapt the matrix code in src/interp/i-output.boot around the function "appmat".

no idea what exactly is going on there, probably a lot of efford to try to understand boot, I glanced at it, but would need much more work-


Johannes

--
Mit freundlichen Grüßen

Johannes Grabmeier

Prof. Dr. Johannes Grabmeier,
Köckstraße 1, D-94469 Deggendorf
Tel. +49-(0)-991-2979584, Tel. +49-(0)-151-681-70756
Fax: +49-(0)-991-2979592

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/047d0df5-d4b3-462e-8852-e90cebef228f%40grabmeier.net.

Reply via email to