Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
Function: write_data (<X>, <D>)
Function: write_data (<X>, <D>, <separator_flag>) Writes the object <X> to the destination <D>.
write_data writes a matrix in row-major order, with one line per row.
write_data writes an array created by array or make_array in row-major order, with a new line at the end of every slab. Higher-dimensional slabs are separated by additional new lines.
write_data writes a hashed array with each key followed by its associated list on one line.
write_data writes a nested list with each sublist on one line.
write_data writes a flat list all on one line.
The destination <D> may be a file name or a stream. When the destination is a file name, the global variable file_output_append governs whether the output file is appended or truncated. When the destination is a stream, no special action is taken by write_data after all the data are written; in particular, the stream remains open.
The recognized values of <separator_flag> are comma, pipe, semicolon, space, and tab. If <separator_flag> is not specified, the file is assumed space-delimited.
(%o1) true (%i2)