jacopy.packages.poisson.PoissonBracketValue

class jacopy.packages.poisson.PoissonBracketValue(pi, f, g)

Bases: Atom

{f, g} — a Poisson bracket value, a scalar function (canonical definition {f,g} = π(df, dg)).

Parameters:
__init__(pi, f, g)
Parameters:
Return type:

None

Methods

__init__(pi, f, g)

clone()

Return self.

find(predicate)

Yield descendants (including self) satisfying predicate.

replace_at(path, new)

Return a new tree with new spliced at path.

substitute_atom(dummy, target)

Return self with every occurrence of dummy replaced by target.

walk()

Pre-order traversal yielding self followed by descendants through children only.

with_slots(f, g)

Attributes

children

Tuple of immediate children.

degree

f

g

is_atom

pi

rewritable_slots