Re:QuestionUsenet

*To*: mathgroup at smc.vnet.net*Subject*: [mg77917] Re:QuestionUsenet*From*: JanPax <pax0 at seznam.cz>*Date*: Tue, 19 Jun 2007 06:59:43 -0400 (EDT)

Hi, what is the easiest way to generate (in Mathematica) ALL terms given some function symbols and their arities and variables x,y, like e.g. f unary, g binary, up to depth N? x,y, f(x),f(y),g(x,f(x)),g(x,f(y)).... Or even better, to generate *next* term at one step, so that all terms up to depth N will be reached once. Thank you, JP

**Follow-Ups**:**Re: Re:QuestionUsenet***From:*Andrzej Kozlowski <akoz@mimuw.edu.pl>