Here's an example:
#+NAME: sys5
#+HEADER: :exports both
#+BEGIN_SRC maxima :results raw
programmode: false;
solution: triangularize(coefmatrix(
[ -3*x - 11*y + 7*z = 0,
2*x + 6*y - 2*z = 0,
x + 2*y + z = 0],
[x, y, z]));
print(solution);
#+END_SRC
# (1)
#+RESULTS: sys5
: [ - 3 - 11 7 ]
: [ ]
: [ 0 4 - 8 ]
: [ ]
: [ 0 0 0 ]
# (2)
#+BEGIN_EXAMPLE
[ - 3 - 11 7 ]
[ ]
[ 0 4 - 8 ]
[ ]
[ 0 0 0 ]
#+END_EXAMPLE
Triangulated matrix of the above solution doesn't have pivot in the third
column, thus it doesn't have a unique solution.
(1) is printed like so: [-3 -11 7] [] [0 4 -8] [] [0 0 0]
, but (2) prints properly, i.e. every line on the separate line. Interestingly, if there's some text after the #+RESULTS:
, then export doesn't add =
around the result, otherwise, it does.
Is there anything special about []
in results?