Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Universal Algebra, term generation' topicStudent Support Forum > General > "Universal Algebra, term generation"

Help | Reply To Topic
Author Comment/Response
Jan Pax
06/19/07 11:40am

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 will be reached exactly once.

Thank you, JP

URL: ,
Help | Reply To Topic