Here's an example from the doc (book.pdf):

(1) -> x := solve ([[1 ,2 ,3] ,[2 ,3 ,4] ,[3 ,4 ,5]] ,[2 ,2 ,2])

   (1)  [particular = [- 2, 2, 0], basis = [[1, - 2, 1]]]
(2) -> T := typeOf x

   (2)
  Record(particular: Union(Vector(Fraction(Integer)),"failed"),basis: 
List(Vect
  or(Fraction(Integer))))
(3) -> f : File T := open("sols.out", "output")

   (3)  "sols.out"
(4) -> write!(f,x)

   (4)  [particular = [- 2, 2, 0], basis = [[1, - 2, 1]]]
(5) -> close! f

   (5)  "sols.out"
(6) ->


Here's the content of sols.out:

cat sols.out

((0 . #((-2 . 1) (2 . 1) (0 . 1))) #((1 . 1) (-2 . 1) (1 . 1)))


How do I get the file content look exactly as it appears on the screen: 

[particular = [- 2, 2, 0], basis = [[1, - 2, 1]]]

as in line (4) above?

Thanks,
SWA

-- 
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/14da8b2e-ca3a-4d85-96ce-704506ad6b3an%40googlegroups.com.

Reply via email to