jacopy.brackets.expand_bracket

jacopy.brackets.expand_bracket(node, registry=None)

Expand a single BracketApply via its bracket’s rule.

Matches the jacopy.algebra.commutator.expand_commutator() pattern, a standalone function that the rewrite layer can plug in as a rule, plus a BracketApply.expand() convenience method.

Parameters:
Return type:

Expr