File: output_format.tex

package info (click to toggle)
cadabra 1.46-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,244 kB
  • sloc: cpp: 33,188; ansic: 2,724; makefile: 329; yacc: 180; sh: 157; python: 45; lex: 38; lisp: 19
file content (19 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
\cdbalgorithm{output\_format}{}

Set the output format according to the argument given. It can take one
of the three values This can take one of the values {\tt cadabra},
{\tt mathematica}, {\tt reduce}, {\tt maple}, {\tt texmacs}, {\tt
xcadabra}, {\tt mathml}. 
\begin{screen}{1}
@output_format{mathematica};
A_{m n} B_{p q};
Tensor[A, {m, n}] * Tensor[B, {p, q}];
@output_format{reduce};
A(m,n) * B(p,q);
\end{screen}
Not all of these output formats are fully functional and some are
meant only as an internal format (e.g.~{\tt xcadabra} is used for
communication with the graphical front-end).  

\cdbseealgo{print}