Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
blociss committed Jul 14, 2023
1 parent 56f7f34 commit 00b180e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/src/SmallExample.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,21 @@ end

![alt text](img/caterpillar2.png)


To provide an example on how to use our package, we define a graph G from a list of edges:

```jldoctest
```jldoctest graph
julia> G=graph([(1, 2), (1,2),(1,2)])
graph([(1, 2), (1, 2), (1, 2)])
graph([(1, 2), (1, 2), (1, 2)])
```

We then define a polynomial ring with all variables required by our implementation:

```jldoctest
```jldoctest graph
julia> R, x, q = polynomial_ring(G, "x", "q")
(Multivariate polynomial ring in 5 variables over QQ, Nemo.QQMPolyRingElem[x[1], x[2]], Nemo.QQMPolyRingElem[q[1], q[2], q[3]])
(Multivariate polynomial ring in 5 variables over QQ, Nemo.QQMPolyRingElem[x[1], x[2]], Nemo.QQMPolyRingElem[q[1], q[2], q[3]])
```
```jldoctest

```jldoctest graph
julia> f = feynman_integral_degree(x, q, G, 3)
24*q[1]^6 + 20*q[1]^4*q[2]^2 + 20*q[1]^4*q[3]^2 + 20*q[1]^2*q[2]^4 + 20*q[1]^2*q[3]^4 + 24*q[2]^6 + 20*q[2]^4*q[3]^2 + 20*q[2]^2*q[3]^4 + 24*q[3]^6
```

0 comments on commit 00b180e

Please sign in to comment.