Skip to content

FunctionalDiagrams 2.4.0

Choose a tag to compare

@n4sd4q n4sd4q released this 26 Oct 22:14

FunctionalDiagrams 2.4.0 — Feynman diagrams from functional derivatives.

This release is about the pictures. In a notebook they follow its appearance, light or dark, and the blobs of the exact
equations are sized to their labels and joined by parallel lines. There is one new option, "Appearance"; no public
name is removed or renamed, and the expressions are the same as in 2.3.0, so code written for 2.3.0 runs unchanged.
Pictures with blobs or double wavy lines look different, also in their TikZ code. 132 public names, 821 tests, all
passing.

New in this version

  • Pictures that follow light and dark notebooks. In Mathematica 14.3 and later, the pictures of DiagramPlot and
    DrawDiagram have dark lines and text on a light notebook and light ones on a dark notebook (through
    LightDarkSwitched). The inside of the blobs, of the external points and of the sources takes the background of the
    notebook, so that it hides no line there. The new option "Appearance" -> Automatic | "Light" | "Dark" forces one of
    the two, on its own background, for a picture exported to a page of the other kind;
    SetOptions[{DiagramPlot, DrawDiagram}, "Appearance" -> "Dark"] sets it for a session. Before 14.3 the pictures keep
    the colours of a light notebook. The TikZ code is for white pages and ignores the option.

Pictures

  • Labels of blobs. A blob declared with DeclareBlob is as large as its label needs: the label sits inside it with a
    band of hatching all around, so that an accent, a subscript or a superscript is never cut by the outline (Λ̃, Γ_ph,
    Γ^(4)). The blobs of one shape have one size in a picture and in all the terms of a sum drawn together. In the pictures
    of Mathematica a tilde or a hat is written above its letter.
  • Triangles. "Shape" -> "Triangle" is equilateral (it had a narrow 30-degree tip), the same triangle as
    "TriangleUp" turned. Its label sits near the incentre and is written 0.8 times smaller, so that Λ̃ keeps the size
    of Λ.
  • Parallel lines between blobs. The lines of a triangle leave from its corners, and a box joined by two lines to two
    corners of a triangle (Γ⁰ L₀ Λ, Γ_xc L₀ Λ̃) is as wide as the side between them. A circle with two ports joined to one
    other blob (the gap function closed on Γ_pp) has them on the side facing it. A line that leaves a blob outwards is bent
    only if it would cross the blob.
  • The double wavy line is one wavy line drawn double, its strokes 1.2 line widths apart, so that it no longer reads
    as one thick line in small pictures. Diamonds are hatched vertically, no longer along two of their edges.

Documents

  • The manual and the guided tour describe "Appearance" (the tour draws a picture forced dark), and the usage message of
    DiagramPlot lists every value of "InteractionStyle".
  • Skeleton expansions are drawn with plain lines, as in the textbooks: every line of Φ[G, W], Σ[G, W], P[G, W] and of
    Γ₂[G, D_σ] of φ⁴ theory is a dressed one, and the documents draw it in the plain style of its kind, the screened
    interaction W as an ordinary wavy line (the option "Interactions" -> {W} in those pictures). The double wavy line
    marks W only where the bare V appears too, as in Hedin's equations, like the double arrow in the Dyson equation; the
    usage messages of DeclareInteractionLine and DeclareLineStyle say so.
  • The logo has slimmer lines and larger arrow heads, so that the direction of its loop reads at small sizes. The gallery
    of the README tells one story per panel (the first example, exact equations, screening, pairing, field theory). The
    demo video is 1920×1080 at 60 fps, with a 60 fps preview. A landing page,
    https://n4sd4q.github.io/FunctionalDiagrams/, links the repository, the latest release, the two PDFs, the interactive
    map of the functions and the video.

Install

The package needs Mathematica 12.1 or later; the pictures that follow light and dark notebooks need 14.3 or later.

PacletInstall["https://github.com/n4sd4q/FunctionalDiagrams/releases/download/v2.4.0/FunctionalDiagrams-2.4.0.paclet"]
Needs["FunctionalDiagrams`"]

or download FunctionalDiagrams-2.4.0.paclet below and run PacletInstall["/path/to/FunctionalDiagrams-2.4.0.paclet"].
The paclet contains the showcase, the reference manual and the guided tour; the PDFs are also attached here. The full
list of changes is in the
CHANGELOG.