On 5/7/24 13:22, Grégory Vanuxem wrote:
)set output algebra off
)set output formatted on
LOFC ==> List(OutputFormatterCategory)
setFormats!([Formatter Format2D] pretend LOFC)$FormattedOutput
pile(["long string", "another long string"])$OutputForm

It requires switching off algebra though,

Why would that be a problem?

and frankly I really like the work done by the Julia community
for outputting their objects.

But hey, that was exactly, why I gave you the "pile" function above.

Assuming that you get the julia output as a list of lines/string, you just have to convert them to a list li of type List(Symbol) and form the OutputForm for that result by saying pile(li). And then let Format2D do the rest (which basically just prints that OutputForm without any modification as in Julia). Other FriCAS stuff is still printed very similar to the original algebra output of FriCAS. Try it out.

However, I am not sure whether a normal user would actually want "julia-tagged" values look different from equivalent FriCAS values. On the other hand, the type decides how its elements are printed. So, why not.

Ralf

--
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/84b0bfcd-4b78-4712-a3b0-059b7fd8d529%40hemmecke.org.

Reply via email to