File: tree.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 (30 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
\cdbalgorithm{tree}{}

Display the internal tree form of a given
expression. Can be used on a single expression or on an entire tree:
\begin{screen}{1,2,3,10}
A_{m n}:
B_{m n}:
@tree(1);
(1): \history  (0)
  1:{\expression}  (1)
  2:  {A}  (2)
  3:    _{m}  (3)
  4:    _{n}  (3)
  5:  \asymimplicit  (2)
@tree;
(1): {\expression}  (1)
  1:  {A}  (2)
  2:    _{m}  (3)
  3:    _{n}  (3)
  4:  \asymimplicit  (2)

(2): {\expression}  (1)
  1:  {B}  (2)
  2:    _{m}  (3)
  3:    _{n}  (3)
  4:  \asymimplicit  (2)
\end{screen}
Most expressions lead to extremely lengthy output, so it is useful to
redirect it to a file using output redirection.