Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
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
Create a Paclet
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`
C
o
u
n
t
L
o
o
p
s
C
o
u
n
t
L
o
o
p
s
[
i
n
t
e
g
r
a
n
d
]
g
i
v
e
s
t
h
e
n
u
m
b
e
r
o
f
e
f
f
e
c
t
i
v
e
l
o
o
p
o
f
a
i
n
t
e
g
r
a
n
d
,
i
.
e
.
t
h
e
n
u
m
b
e
r
o
f
i
n
t
e
r
n
a
l
m
o
m
e
n
t
a
o
n
w
h
i
c
h
t
h
e
i
n
t
e
g
r
a
n
d
h
a
s
t
o
b
e
i
n
t
e
g
r
a
t
e
d
o
n
.
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
Examples
(
1
)
Basic Examples
(
1
)
I
n
[
1
]
:
=
N
e
e
d
s
[
"
G
S
b
e
r
v
e
g
l
i
e
r
i
`
P
h
i
4
t
o
o
l
s
`
"
]
The diagrams with 5 quartic vertices and two external legs have 5 loops
I
n
[
2
]
:
=
C
o
u
n
t
L
o
o
p
s
/
@
I
n
t
e
g
r
a
n
d
D
i
a
g
r
a
m
[
2
,
0
,
5
]
O
u
t
[
2
]
=
{
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
,
5
}
After the substitutions, the number of residual loops is greatly reduced
I
n
[
3
]
:
=
C
o
u
n
t
L
o
o
p
s
/
@
I
n
t
e
g
r
a
n
d
D
i
a
g
r
a
m
[
2
,
0
,
5
,
"
S
u
b
s
t
i
t
u
t
i
o
n
s
"
"
A
n
a
l
y
t
i
c
s
"
]
O
u
t
[
3
]
=
{
0
,
0
,
2
,
1
,
2
,
1
,
2
,
1
,
2
,
2
,
2
,
2
,
1
,
1
,
2
,
2
,
2
,
2
,
3
}
C
o
u
n
t
L
o
o
p
s
can be applied to the output of
W
r
i
t
e
E
x
p
l
i
c
i
t
I
n
[
4
]
:
=
i
n
t
e
g
=
I
n
t
e
g
r
a
n
d
D
i
a
g
r
a
m
[
4
,
0
,
5
,
1
0
,
"
S
u
b
s
t
i
t
u
t
i
o
n
s
"
"
A
n
a
l
y
t
i
c
s
"
]
C
o
u
n
t
L
o
o
p
s
[
i
n
t
e
g
]
,
C
o
u
n
t
L
o
o
p
s
W
r
i
t
e
E
x
p
l
i
c
i
t
[
i
n
t
e
g
]
O
u
t
[
4
]
=
2
ℬ
[
[
2
]
]
[
[
2
]
]
2
[
[
1
]
+
[
2
]
]
[
-
[
1
]
-
[
2
]
,
[
1
]
,
[
2
]
]
O
u
t
[
4
]
=
{
2
,
2
}
S
e
e
A
l
s
o
I
n
t
e
g
r
a
n
d
D
i
a
g
r
a
m
▪
W
r
i
t
e
E
x
p
l
i
c
i
t
▪
D
e
r
i
v
e
A
n
d
W
r
i
t
e
E
x
p
l
i
c
i
t
▪
M
o
m
e
n
t
u
m
▪
M
o
m
V
a
r
s
T
e
c
h
N
o
t
e
s
▪
F
e
y
n
m
a
n
D
i
a
g
r
a
m
E
v
a
l
u
a
t
i
o
n
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
P
h
i
4
t
o
o
l
s
"
"