Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Phi4tools

Guides

  • Phi4tools

Tech Notes

  • Feynman Diagram Evaluation
  • Perturbative Series Generation

Symbols

  • BubbleSubdiagram
  • CountLoops
  • DeriveAndWriteExplicit
  • DrawGraph
  • ExternalMomentum
  • InformationDiagram
  • IntegrandDiagram
  • Momentum
  • MomVars
  • NComponents
  • NickelIndex
  • Propagator
  • SquareSubdiagram
  • SunsetSubdiagram
  • SymmetryFactorDiagram
  • TadSunsetSubdiagram
  • TadTriangleBubblesSubdiagram
  • TriangleSubdiagram
  • ValueDiagram
  • VisualizeDiagram
  • WriteExplicit
  • XCubicRatio
GSberveglieri`Phi4tools`
TriangleSubdiagram
​
​
TriangleSubdiagram
[[1],[2],[3]]
represents the one-loop triangle subdiagram.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
In[1]:=
Needs["GSberveglieri`Phi4tools`"]
Let's look at the
th
9
diagram for
(4)
Γ
for the
4
ϕ
theory with
v3
=2 cubic vertices and
v4
=2 quartic vertices, let's visualize it and print its integrand:
In[2]:=

VisualizeDiagram
[4,2,2,9],
IntegrandDiagram
[4,2,2,9]
Out[2]=

,2[[1]][[1]-[2]]
2
[[2]]
[-[1]+[2]]
The function
WriteExplicit
prints the integrand in
d=3
in terms of the three-dimensional components in spherical coordinates ready to be integrated.
In[3]:=
integrand4229=
WriteExplicit
@
IntegrandDiagram
[4,2,2,9]
Out[3]=
2
1+
2
[1]
ρ

2
1+
2
[2]
ρ

2
1+
2
[1]
ρ
-2Cos[
[2]
θ
]
[1]
ρ
[2]
ρ
+
2
[2]
ρ

The function
MomVars
returns in output the variables we have to integrate over to compute the value of this diagram. In this case we will have a three-dimensional integral to perform.
In[4]:=
MomVars
@integrand4229
Out[4]=
{
[1]
ρ
,
[2]
θ
,
[2]
ρ
}
Let's look at the case with the triangle subdiagram substituted
In[5]:=

VisualizeDiagram
[4,2,2,9,"Substitutions""Analytics"],
IntegrandDiagram
[4,2,2,9,"Substitutions""Analytics"]
Out[5]=

,2
2
[[1]]
[-[1],[1],0]
In[6]:=
integrand4229triangle=
WriteExplicit
@
IntegrandDiagram
[4,2,2,9,"Substitutions""Analytics"]
Out[6]=
1
4π
2
1+
2
[1]
ρ

4+
2
[1]
ρ

The integral to perform is just one-dimensional. Notice how the
WriteExplicit
wrote
[-[1],[1],0]
as its expression in
d=3
.
Every triangle subdiagram substitution reduces the number of loop of the diagram by one. Let's look at another example: the
th
19
diagram for
(0)
Γ
for the
4
ϕ
theory with vertices
v4
=6 quartic vertices, without and with the triangle subdiagram substitutions.
In[7]:=

VisualizeDiagram
[0,0,6,19],
VisualizeDiagram
[0,0,6,19,"Substitutions""Analytics"]
Out[7]=

,

In[8]:=
IntegrandDiagram
[0,0,6,19]​​
IntegrandDiagram
[0,0,6,19,"Substitutions""Analytics"]
Out[8]=
1
48
[[1]][[2]][[3]][[1]+[2]+[3]][[4]][[5]][-[1]+[4]+[5]][-[2]-[3]-[4]-[5]-[6]][[6]][-[3]-[5]-[7]][[7]][-[4]-[6]+[7]]
Out[8]=
1
48
[[1]+[2],-[1],-[2]][[1]-[3],[2]+[3],-[1]-[2]][-[2]-[3],[3],[2]][-[1]+[3],[1],-[3]]
The 4 substitutions reduced the number of loops from 7 to 3, as we can see printed using the function
CountLoops
on the respective integrands
In[9]:=
CountLoops
/@
IntegrandDiagram
[0,0,6,19],
IntegrandDiagram
[0,0,6,19,"Substitutions""Analytics"]
Out[9]=
{7,3}
SeeAlso
Propagator
 
▪
BubbleSubdiagram
 
▪
SunsetSubdiagram
 
▪
SquareSubdiagram
 
▪
TadSunsetSubdiagram
 
▪
TadTriangleBubblesSubdiagram
 
▪
VisualizeDiagram
 
▪
IntegrandDiagram
 
▪
WriteExplicit
 
▪
InformationDiagram
TechNotes
▪
Feynman Diagram Evaluation
RelatedGuides
▪
Phi4tools
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com