print calc tree