Function: math[printtree] - prints 2-dimensional structure of a tree

Calling Sequence:

printtree(t);

Parameters:

t - a tree created with math/tree

Description:

math/printtree prints the structure of a tree.

The result of this function is always NULL.

This function is part of the math package, and so can be used only after performing the command with(math) or with(math, printtree).

Examples:

> with(math):

> printtree(tree(x^3));

^
x
3

> printtree(tree(2*x^3+sin(2*y)));

+
*
2
^
x
3
sin
*
2
y

See Also:

math/printtree , op .

Version History:

Version 1.0 - June 08, 1998