I would have said that this works...

Maybe not exactly what you want ...

http://fricas.github.io/faq.html#how-can-i-record-console-output

(9) -> )set message prompt none
)spool filename.txt

x

   (9)  [particular = [- 2, 2, 0], basis = [[1, - 2, 1]]]
Type: Record(particular: Union(Vector(Fraction(Integer)),"failed"),basis: List(Vector(Fraction(Integer))))
)spool )off

)set message prompt step

But strange, when I do this, I see only the input lines recorded.
Do we have a bug or is it just my system?

==================

You should forget about using "File(T)" for what you want. As you can see File(T) only gives a Lisp-like output that you can read back into FriCAS, but you want probably something else.

I am not completely sure about the "something else" might mean, but you could do the following:

========
fn := filename("", "sols", "out")$FileName
f := open(fn, "output")$TextFile
x := solve ([[1 ,2 ,3] ,[2 ,3 ,4] ,[3 ,4 ,5]] ,[2 ,2 ,2])
for line in lines(formatExpression(x::OutputForm)$Format1D) repeat _
  writeLine!(f,line))
close! f
========

Instead of Format1D you can also choose Format2D, FormatMathJax, or FormatLaTeX.

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/ce16f25c-18fd-0f49-5250-e20d02986103%40hemmecke.de.

Reply via email to