Well, the intent clearly was that "printing" produces a bundle
containing step number and value,

The time this method was invented for FriCAS, the people that invented jupyter where probably not yet born. The idea of having possibly another UI for FriCAS was not on the screen. "Saturn" was an in-house product.

and that separationg step number and value should be easy.

Can you do it for all cases? Just two are given below. "Easy" is something else.

To say the truth it looks somewhat strange that you want to
suppres printing of step number but want its value.

The printing of the step number in the fricas algebra output consumes n colums of space where n depends on the number of digits of the step number. If the step number appeared in the beginning of the output, then perhaps I could parse the output, extract the value, remove the columns from the fricas output, and use it for jupyter. But it doesn't always

Reading $IOindex is definitely a simpler solution, given that the step number cannot always be easily removed, see below. And I do not think that it makes sense to print the step number in the FriCAS output (and thus waste some output columns if it there is anyway a "Out[step]" in jupyter, which should, of course agree with what FriCAS thinks the step number is to make %%(stepnumber) work as expected.

Ralf

(124) -> i3 := [x^(-1) for x in d3]

           + 0   1+  + 1   1+  + 2   1+  +1  0+
   (124)  [|      |, |      |, |      |, |    |]
           +- 1  0+  +- 1  0+  +- 1  0+  +0  1+

(125) -> m3 := [[x*y for y in i3] for x in r3]

   (125)
     + 0   1+  + 1   1+  + 2   1+  +1  0+
   [[|      |, |      |, |      |, |    |],
     +- 1  0+  +- 1  0+  +- 1  0+  +0  1+
     + 1   0+  +1  0+  +1  0+  +0  - 1+    + 0   1+  +1  1+  +2  1+  +1  0+
[| |, | |, | |, | |], [| |, | |, | |, | |],
     +- 1  1+  +0  1+  +1  1+  +1   1 +    +- 1  2+  +1  2+  +3  2+  +2  1+
     + 1   0+  + 1   0+  + 1   0+  +0  - 1+
    [|      |, |      |, |      |, |      |]]
     +- 3  1+  +- 2  1+  +- 1  1+  +1   3 +

--
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/b0cc65ab-bc1c-8d62-e14e-c1123a428dd3%40hemmecke.org.

Reply via email to