VakintExpression

VakintExpression

VakintExpression()

Methods

Name Description
__new__ Create a new VakintExpression from a Symbolica Expression which will separate numerator and topologies.
__str__ String representation of the VakintExpression.
to_expression Convert the VakintExpression back to a Symbolica Expression.

__new__

VakintExpression.__new__(atom: typing.Any) -> VakintExpression

Create a new VakintExpression from a Symbolica Expression which will separate numerator and topologies

Examples

integral=E('''
        (
            k(1,11)*k(2,11)*k(1,22)*k(2,22)
          + p(1,11)*k(3,11)*k(3,22)*p(2,22)
          + p(1,11)*p(2,11)*(k(2,22)+k(1,22))*k(2,22)
        )*topo(
             prop(1,edge(1,2),k(1),muvsq,1)
            * prop(2,edge(2,3),k(2),muvsq,1)
            * prop(3,edge(3,1),k(3),muvsq,1)
            * prop(4,edge(1,4),k(3)-k(1),muvsq,1)
            * prop(5,edge(2,4),k(1)-k(2),muvsq,1)
            * prop(6,edge(3,4),k(2)-k(3),muvsq,1)
)''', default_namespace="vakint")
print(VakintExpression(integral))

# ((k(1,22)+k(2,22))*k(2,22)*p(1,11)*p(2,11)+k(1,11)*k(1,22)*k(2,11)*k(2,22)+k(3,11)*k(3,22)*p(1,11)*p(2,22)) x topo(prop(1,edge(1,2),k(1),muvsq,1)*prop(2,edge(2,3),k(2),muvsq,1)*prop(3,edge(3,1),k(3),muvsq,1)*prop(4,edge(1,4),-k(1)+k(3),muvsq,1)*prop(5,edge(2,4),k(1)-k(2),muvsq,1)*prop(6,edge(3,4),k(2)-k(3),muvsq,1))

Parameters

  • atom (Expression) A Symbolica Expression containing a vakint integral, i.e. a sum of terms, each a product of a numerator and a vakint::topo(...) structure.

__str__

VakintExpression.__str__() -> builtins.str

String representation of the VakintExpression.

to_expression

VakintExpression.to_expression() -> Expression

Convert the VakintExpression back to a Symbolica Expression.

Examples

integral = VakintExpression(E('''
        (
            k(1,11)*k(1,11)
        )*topo(
             prop(1,edge(1,1),k(1),muvsq,1)
)''', default_namespace="vakint"))
str(integral)

# (k(1,11)^2) x topo(prop(1,edge(1,1),k(1),muvsq,1))