Ask Your Question
0

Recursive combinatorial species

asked 2023-05-08 23:19:01 +0100

Thrash gravatar image

updated 2023-05-09 20:20:15 +0100

FrédéricC gravatar image

The combinatorial species of rooted trees can be defined recursively via $A = X\cdot E(A)$, where $X$ denotes the singleton species and $E$ the set species. How can I make the following code work? The last command yields an error.

sage: X = species.SingletonSpecies()
sage: E = species.SetSpecies()
sage: A = CombinatorialSpecies()
sage: A.define(X*E(A))
sage: A.generating_series()
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2023-05-09 14:20:04 +0100

FrédéricC gravatar image

Like this (one has to tell the valuation now).

sage: X = species.SingletonSpecies()
sage: E = species.SetSpecies()
sage: A = CombinatorialSpecies(min=1)
sage: A.define(X*E(A))
sage: A
Combinatorial species with min=1
sage: A.generating_series()[0:4]
[0, 1, 1, 3/2]
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2023-05-08 23:19:01 +0100

Seen: 111 times

Last updated: May 09 '23