I was actually looking for a simpler way to display 1D output (Format1D).

It can be easily done via

print1D x ==> display((x::OutputForm)::Formatter(Format1D))

Studying whether we can sensibly include such a function into FriCAS
(not the topic of the mail), I stumpled over "PrintPackage".

PrintPackage() : with
    print : OutputForm ->  Void
      ++ print(o) writes the output form o on standard output using the
      ++ two-dimensional formatter.
 == add
    print(x) == print(x)$OutputForm

I somehow fail to see what advantage it has. Why another "print" function if eventually, a value of any type has to be converted to OutputForm anyway and so print$OutputForm could be used directly?




Also the SpecialOutputPackage is somewhat useless.


(215) -> outputAsScript("foo"::OutputForm)

   >> System error:
   The function BOOT::|formulaFormat| is undefined.

(215) -> outputAsFortran("foo"::OutputForm)

   >> System error:
   The function BOOT::|dispfortexp| is undefined.

(215) -> outputAsFortran(42::OutputForm)

   >> System error:
   The function BOOT::|dispfortexp| is undefined.


Although DisplayPackage is used in view2D and view3D it may also be a candidate for removal in the future.


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/96a309dc-22c5-ca02-fce7-6215d8b21ef9%40hemmecke.org.

Reply via email to