Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "sitesearch"]
path = sitesearch
url = https://github.com/tombouctou/sitesearch.git
1 change: 1 addition & 0 deletions FeynCalcBook/search-index-text/0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"text":"Overview.","anchor":"see-also","section":"See also"},{"text":"Mathematica package FeynRules allows you to create new FeynArts models that can be used for calculations using FeynCalc. FeynRules is not a part of FeynCalc and must thus be downloaded and installed separately. You can obtain your copy from the developer website.","anchor":"see-also","section":"See also"},{"text":"FeynCalc contains some examples of custom FeynRules models that are located inside","anchor":"see-also","section":"See also"},{"text":"FileNameJoin[{$UserBaseDirectory, \"Applications\", \"FeynCalc\", \"Examples\", \"FeynRules\"}]","anchor":"see-also","section":"See also"},{"text":"The XYZ.fr-file is a FeynRules model, while the GenerateModelXYZ.m script creates a FeynArts model out of it. The script expects FeynRules to be located in","anchor":"see-also","section":"See also"},{"text":"FileNameJoin[{$UserBaseDirectory,\"Applications\",\"FeynRules\"}]","anchor":"cb2","section":"See also"},{"text":"This means that you should be able to load FeynRules on a fresh Mathematica kernel using","anchor":"cb2-1","section":"See also"},{"text":"$FeynRulesPath=FileNameJoin[{$UserBaseDirectory,\"Applications\",\"FeynRules\"}]; <<FeynRules`;","anchor":"cb2-1","section":"See also"},{"text":"without any error messages. If this does not work, then FeynRules have not been installed properly on your computer and cannot be used.","anchor":"cb2-1","section":"See also"},{"text":"The script GenerateModelXYZ.m must be evaluated on a fresh Mathematica kernel. You must ensure that no other packages are loaded, otherwise the process will most likely fail. For that you can either evaluate Quit[] before running the commands from the script or manually kill the kernel(s) via Evaluation -> Quit Kernel -> .... After the script has successfully finished you must close the kernel again. Do not try to load FeynCalc on the same kernel, or you will run into more issues.","anchor":"cb2-1","section":"See also"},{"text":"The new FeynArts model should be now located inside","anchor":"cb2-1","section":"See also"},{"text":"FileNameJoin[{$UserBaseDirectory,\"Applications\",\"FeynCalc\",\"FeynArts\",\"Models\"}]","anchor":"cb4","section":"See also"},{"text":"Before it can be used for calculations, it must be patched for compatibility with FeynCalc. The patching is done by using the function FAPatch with the option PatchModelsOnly set to True","anchor":"cb4-1","section":"See also"},{"text":"If the model is located inside the Models directory of $FeynArtsDirectory, it is sufficient to evaluate FAPatch[PatchModelsOnly -> True] after loading FeynCalc and FeynArts in the usual way.","anchor":"cb4-1","section":"See also"},{"text":"If the model has been placed into a separate directory, use FAPatch[PatchModelsOnly -> True, FAModelsDirectory -> \"fullPathToMyModelDir\"]","anchor":"cb4-1","section":"See also"},{"text":"The patching has to be done only once for each new model. However, rerunning FAPatch[PatchModelsOnly -> True] would not do any harm, so if you often modify existing or add new models, you might want to keep this command in your working notebooks.","anchor":"cb4-1","section":"See also"},{"text":"Please note that we don’t provide support on how to create or debug a particular FeynRules model. For that please consult the package manual or contact the package developers","anchor":"cb4-1","section":"See also"}]
1 change: 1 addition & 0 deletions FeynCalcBook/search-index-text/1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"text":"Overview.","anchor":"see-also","section":"See also"},{"text":"If you are using FeynCalc in your research activities on a regular basis, sooner or later you will encounter situations, where FeynCalc is missing something that you need. Provided that you have some knowledge in Mathematica programming, you can in principle extend FeynCalc with whatever you want, where the only limits are your skills and the amount of time you want to invest into it.","anchor":"see-also","section":"See also"},{"text":"Here we collect some tips and recommendations for extending/modifying FeynCalc","anchor":"see-also","section":"See also"},{"text":"To improve the code quality of FeynCalc and avoid new bugs or regressions we employ a large number of unit tests. The tests are written using Mathematica’s native framework MUnit and can be found in the Tests directory of the FeynCalc repository","anchor":"unit-tests","section":"Unit tests"},{"text":"The unit tests are useful not only for the developers. If you are modifying the source code of FeynCalc for your own needs or using FeynCalc together with other packages on the same kernel, it might be useful to check if FeynCalc is still working properly. This can be done by running the test suite and analyzing the results.","anchor":"unit-tests","section":"Unit tests"},{"text":"In general, it is not a very good idea to modify the source code of FeynCalc directly, since this may give you a lot of troubles when updating to a newer version. Also, there is a fair chance to break existing functionality which might lead to erroneous results. However, for some deep modifications this might be sometimes necessary.","anchor":"modifying-the-source-code","section":"Modifying the source code"},{"text":"Still, if you think that the feature that you want to implement could be useful also for other people, it won’t harm to publish your request on the mailing list.","anchor":"modifying-the-source-code","section":"Modifying the source code"},{"text":"The source code of FeynCalc is located in the $FeynCalcDirectory directory. The package is loaded via the FeynCalc.m file.","anchor":"modifying-the-source-code","section":"Modifying the source code"},{"text":"In FeynCalc.m there is a code snippet that starts with boostrappingList = .... This is where different parts of the FeynCalc package are loaded. Those parts are contained in different directories inside $FeynCalcDirectory (e.g. Shared, NonCommAlgebra, Lorentz) depending on their purpose. Every .m file from those directories is loaded into Mathematica.","anchor":"modifying-the-source-code","section":"Modifying the source code"},{"text":"Starting with the version 9.0, FeynCalc features a new add-on system. The purpose of add-ons is to extend FeynCalc with new features without the need to modify FeynCalc itself.","anchor":"add-ons","section":"Add-ons"},{"text":"The add-ons are placed in the directory AddOns inside $FeynCalcDirectory. They are loaded in the same fashion as regular FeynCalc objects and functions and live in the context FeynCalc`NameOfTheAddon`.","anchor":"add-ons","section":"Add-ons"},{"text":"A toy add-on FVProjection that represents a minimal working example is shipped together with FeynCalc. You can use its source code as a template for writing your own addons. The general structure of the main .m file (e.g. MyAddon.m) for an add-on looks like","anchor":"add-ons","section":"Add-ons"},{"text":"Foo::usage= \"Description of Foo\"; Bar::usage= \"Description of Bar\"; $MyAddonVersion::usage= \"$MyAddonVersion is the string that represents the version of MyAddon\"; $MyAddonDirectory::usage= \"$MyAddonDirectory is the string that represents the full path to the MyAddon directory\"; Begin[\"`Package`\"] End[] $MyAddonVersion=\"1.0.0\"; $MyAddonDirectory = ToFileName[{$FeynCalcDirectory, \"AddOns\", \"MyAddon\"}]; Begin[\"`MyAddon`Private`\"]; Foo[x_,y_]:= Pair[Momentum[x],Momentum[y]]; Bar[x_,y_]:= DiracGamma[LorentzIndex[x]].DiracGamma[Momentum[y]]; (* Print startup message *) If[ Global`$FeynCalcStartupMessages =!= False, Print[Style[\"MyAddon \", \"Text\", Bold], Style[$MyAddonVersion <> \" loaded.\", \"Text\"]] ]; End[]","anchor":"cb1","section":"Add-ons"},{"text":"Starting with FeynCalc 9.0 one can easily write something like","anchor":"packages-that-use-feyncalc","section":"Packages that use FeynCalc"},{"text":"``mathematica BeginPackage[\"MyPackage“,{”FeynCalc`“}]","anchor":"packages-that-use-feyncalc","section":"Packages that use FeynCalc"},{"text":"MySP::usage= “Description of MySP”;","anchor":"packages-that-use-feyncalc","section":"Packages that use FeynCalc"},{"text":"Begin[“Private”];","anchor":"packages-that-use-feyncalc","section":"Packages that use FeynCalc"},{"text":"MySP[a_,b_]:= FCI[SP[a,b]];","anchor":"packages-that-use-feyncalc","section":"Packages that use FeynCalc"},{"text":"End[] EndPackage[]","anchor":"packages-that-use-feyncalc","section":"Packages that use FeynCalc"},{"text":"```mathematica","anchor":"packages-that-use-feyncalc","section":"Packages that use FeynCalc"},{"text":"The decision, whether you want to write an add-on or a separate package that requires FeynCalc should be made depending on your working style.","anchor":"package-or-add-on","section":"Package or add-on?"},{"text":"If you use FeynCalc as your primary tool for doing computations, an add-on would be the best way to add things that you’re missing.","anchor":"package-or-add-on","section":"Package or add-on?"},{"text":"If for you FeynCalc is only a part of a bigger framework, then a package that combines different tools (including FeynCalc) would probably be a better idea.","anchor":"package-or-add-on","section":"Package or add-on?"}]
1 change: 1 addition & 0 deletions FeynCalcBook/search-index-text/10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"text":"CSP, CSPD, CSPE - scalar products of 3-momenta","anchor":"basic-objects","section":"Basic objects"},{"text":"CV, CVD, CVE - Cartesian 3-vectors","anchor":"basic-objects","section":"Basic objects"},{"text":"CartesianIndex - Cartesian index","anchor":"basic-objects","section":"Basic objects"},{"text":"CartesianMomentum - internal representation of \\(3\\)-momenta","anchor":"basic-objects","section":"Basic objects"},{"text":"CartesianPair - special pairing used in the internal representation to represent Kronecker deltas, 3-vectors or Cartesian scalar products","anchor":"basic-objects","section":"Basic objects"},{"text":"DiracBasis - can be used as a separator in the SPVAT-decomposition","anchor":"basic-objects","section":"Basic objects"},{"text":"DeltaFunction, DeltaFunctionPrime, DeltaFunctionDoublePrime - Dirac delta function and its derivatives","anchor":"basic-objects","section":"Basic objects"},{"text":"DiracGamma, GA, GA5, GS, GAD, GSD, GAE, GSE - Dirac matrices and Feynman slashes","anchor":"basic-objects","section":"Basic objects"},{"text":"GALP, GALN, GALR, GALPD, GALND, GALRD, GSLP, GSLN, GSLR, GSLPD, GSLND, GSLRD - Lightcone components of Dirac matrices and Feynman slashes","anchor":"basic-objects","section":"Basic objects"},{"text":"DiracIndexDelta, DIDelta - Kronecker delta in the Dirac space","anchor":"basic-objects","section":"Basic objects"},{"text":"DiracSigma - denotes \\frac{i}{2}[\\gamma^\\mu, \\gamma^\\nu]","anchor":"basic-objects","section":"Basic objects"},{"text":"DOT - noncommutative multiplication sign","anchor":"basic-objects","section":"Basic objects"},{"text":"Eps, LC, LCD, CLC, CLCD - totally antisymmetric \\varepsilon (Levi-Civita) tensor","anchor":"basic-objects","section":"Basic objects"},{"text":"EpsilonUV, EpsilonIR, Epsilon - \\varepsilon from dimensional regularization","anchor":"basic-objects","section":"Basic objects"},{"text":"ExplicitLorentzIndex, LorentzIndex - Lorentz index","anchor":"basic-objects","section":"Basic objects"},{"text":"ExplicitDiracIndex, DiracIndex - Dirac index","anchor":"basic-objects","section":"Basic objects"},{"text":"ExplicitPauliIndex, PauliIndex - Pauli index","anchor":"basic-objects","section":"Basic objects"},{"text":"ExplicitSUNIndex, SUNIndex - SU(N) adjoint index","anchor":"basic-objects","section":"Basic objects"},{"text":"ExplicitSUNFIndex, SUNFIndex - SU(N) fundamental index","anchor":"basic-objects","section":"Basic objects"},{"text":"FAD, SFAD, CFAD, GFAD, FeynAmpDenominator - denominators of Feynman amplitudes","anchor":"basic-objects","section":"Basic objects"},{"text":"FCGV - a global variable","anchor":"basic-objects","section":"Basic objects"},{"text":"FCIndexDelta - a generic Kronecker delta placeholder","anchor":"basic-objects","section":"Basic objects"},{"text":"FCIteratedIntegral - Chen’s iterated integral","anchor":"basic-objects","section":"Basic objects"},{"text":"FCHPL, FCGPL - harmonic and Goncharov polylogarithms","anchor":"basic-objects","section":"Basic objects"},{"text":"FCPartialFractionForm - partial fractioned form of rational functions","anchor":"basic-objects","section":"Basic objects"},{"text":"FCTensor, FCVariable, FreeIndex, GrassmannParity, ImplicitDiracIndex, ImplicitPauliIndex, ImplicitSUNFIndex, NegativeInteger, NonCommutative, PositiveInteger, PositiveNumber - various datatypes","anchor":"basic-objects","section":"Basic objects"},{"text":"FUNCTION - declaration of functions for Write2","anchor":"basic-objects","section":"Basic objects"},{"text":"DCHN, DiracChain - Dirac chain with explicit open Dirac indices","anchor":"basic-objects","section":"Basic objects"},{"text":"FeynAmp, FeynAmpList - Feynman amplitudes","anchor":"basic-objects","section":"Basic objects"},{"text":"FCPartialD, LeftNablaD, LeftRightNablaD, LeftRightNablaD2, LeftPartialD, LeftRightPartialD, LeftRightPartialD2, RightNablaD, RightPartialD - partial derivatives acting on operators","anchor":"basic-objects","section":"Basic objects"},{"text":"FCTopology - representation of a loop integral family topology","anchor":"basic-objects","section":"Basic objects"},{"text":"FV, FVD, FVE - Minkowskian 4-vectors","anchor":"basic-objects","section":"Basic objects"}]
1 change: 1 addition & 0 deletions FeynCalcBook/search-index-text/100.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"text":"AntiCommutator[x, y] = c defines the anti-commutator of the non commuting objects x and y.","anchor":"anticommutator"},{"text":"Overview, Commutator, CommutatorExplicit, DeclareNonCommutative, DotSimplify.","anchor":"see-also","section":"See also"},{"text":"This declares a and b as noncommutative variables.","anchor":"examples","section":"Examples"},{"text":"DeclareNonCommutative[a, b] AntiCommutator[a, b] CommutatorExplicit[%]","anchor":"cb1","section":"Examples"},{"text":"\\[\\{a,\\medspace b\\}\\]","anchor":"cb1-5","section":"Examples"},{"text":"\\[a.b+b.a\\]","anchor":"cb1-5","section":"Examples"},{"text":"CommutatorExplicit[AntiCommutator[a + b, a - 2 b ]]","anchor":"cb2","section":"Examples"},{"text":"\\[(a-2 b).(a+b)+(a+b).(a-2 b)\\]","anchor":"cb2-1","section":"Examples"},{"text":"DotSimplify[AntiCommutator[a + b, a - 2 b ]]","anchor":"cb3","section":"Examples"},{"text":"\\[-a.b-b.a+2 a.a-4 b.b\\]","anchor":"cb3-1","section":"Examples"},{"text":"DeclareNonCommutative[c, d, ct, dt]","anchor":"cb4","section":"Examples"},{"text":"Defining {c,d} = z results in replacements of c.d by z-d.c.","anchor":"cb4-1","section":"Examples"},{"text":"AntiCommutator[c, d] = z DotSimplify[ d . c . d ]","anchor":"cb5","section":"Examples"},{"text":"\\[z\\]","anchor":"cb5-3","section":"Examples"},{"text":"\\[d z-d.d.c\\]","anchor":"cb5-3","section":"Examples"},{"text":"AntiCommutator[dt, ct] = zt","anchor":"cb6","section":"Examples"},{"text":"\\[\\text{zt}\\]","anchor":"cb6-1","section":"Examples"},{"text":"DotSimplify[dt . ct . dt]","anchor":"cb7","section":"Examples"},{"text":"\\[\\text{dt} \\;\\text{zt}-\\text{ct}.\\text{dt}.\\text{dt}\\]","anchor":"cb7-1","section":"Examples"},{"text":"UnDeclareNonCommutative[a, b, c, d, ct, dt] UnDeclareAllAntiCommutators[]","anchor":"cb8","section":"Examples"}]
1 change: 1 addition & 0 deletions FeynCalcBook/search-index-text/1000.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"text":"VirtualBoson is an option for PolarizationSum and DoPolarizationSums. If set to True, FeynCalc will not complain when you apply the gauge trick (i.e. replace the polarization sum by \\(- g^{\\mu \\nu}\\) for a particle that is not massless. This is useful when computing processes that involve a virtual photon as an external state.","anchor":"virtualboson"},{"text":"Overview, PolarizationSum, DoPolarizationSums.","anchor":"see-also","section":"See also"}]
1 change: 1 addition & 0 deletions FeynCalcBook/search-index-text/1001.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"text":"West is an option for DiracTrace and several other functions that deal with traces of Dirac matrices. The option applies only to the computation of D-dimensional traces with an odd number of \\(\\gamma ^5\\) in the Breitenlohner-Maison-t’Hooft-Veltman (BMHV) scheme. With West -> True (default setting), such traces are computed according to formula (A.5) from Comp. Phys. Comm 77 (1993) 286-298, which is also known as West’s formula. For more details, see the documentation of DiracTrace.","anchor":"west"},{"text":"Overview, DiracTrace.","anchor":"see-also","section":"See also"}]
1 change: 1 addition & 0 deletions FeynCalcBook/search-index-text/1002.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"text":"Write2[file, val1 = expr1, val2 = expr2, ...] writes the settings val1 = expr1, val2 = expr2 in sequence followed by a newline, to the specified output file. Setting the option FormatType of Write2 to FortranForm results in Fortran syntax output.","anchor":"write2"},{"text":"Overview, Isolate, PaVeReduce.","anchor":"see-also","section":"See also"},{"text":"FullForm[$FortranContinuationCharacter]","anchor":"cb1","section":"Examples"},{"text":"\\[\\&\\]","anchor":"cb1-1","section":"Examples"},{"text":"t = Collect[((a - c)^2 + (a - b)^2)^2, a, Factor]","anchor":"cb2","section":"Examples"},{"text":"\\[4 a^4-8 a^3 (b+c)+8 a^2 \\left(b^2+b c+c^2\\right)-4 a (b+c) \\left(b^2+c^2\\right)+\\left(b^2+c^2\\right)^2\\]","anchor":"cb2-1","section":"Examples"},{"text":"This writes the assignment r=t to a file.","anchor":"cb2-1","section":"Examples"},{"text":"tempfilename = ToString[$SessionID] <> \".s\"; Write2[tempfilename, r = t];","anchor":"cb3","section":"Examples"},{"text":"This shows the contents of the file.","anchor":"cb3-3","section":"Examples"},{"text":"TableForm[ReadList[If[$OperatingSystem === \"MacOS\", \":\", \"\"] <> tempfilename, String]]","anchor":"cb4","section":"Examples"},{"text":"\\[\\begin{array}{l} \\;\\text{r = ( 4*a${}^{\\wedge}$4 - 8*a${}^{\\wedge}$3*(b + c) - 4*a*(b + c)*(b${}^{\\wedge}$2 + c${}^{\\wedge}$2) + } \\\\ \\;\\text{ (b${}^{\\wedge}$2 + c${}^{\\wedge}$2)${}^{\\wedge}$2 + 8*a${}^{\\wedge}$2*(b${}^{\\wedge}$2 + b*c + c${}^{\\wedge}$2)} \\\\ \\;\\text{ );} \\\\ \\end{array}\\]","anchor":"cb4-1","section":"Examples"},{"text":"DeleteFile[If[$OperatingSystem === \"MacOS\", \":\", \"\"] <> tempfilename]","anchor":"cb5","section":"Examples"},{"text":"t2 = x + Isolate[t, a, IsolateNames -> w]","anchor":"cb6","section":"Examples"},{"text":"\\[4 a^4-8 a^3 w(19)+8 a^2 w(21)-4 a w(19) w(20)+w(20)^2+x\\]","anchor":"cb6-1","section":"Examples"},{"text":"Write2[tempfilename, r = t2];","anchor":"cb7","section":"Examples"},{"text":"TableForm[ReadList[If[$OperatingSystem === \"MacOS\", \":\", \"\"] <> tempfilename, String]]","anchor":"cb8","section":"Examples"},{"text":"\\[\\begin{array}{l} \\;\\text{w[19] = (b + c} \\\\ \\;\\text{ );} \\\\ \\;\\text{w[20] = (b${}^{\\wedge}$2 + c${}^{\\wedge}$2} \\\\ \\;\\text{ );} \\\\ \\;\\text{w[21] = (b${}^{\\wedge}$2 + b*c + c${}^{\\wedge}$2} \\\\ \\;\\text{ );} \\\\ \\;\\text{r = ( 4*a${}^{\\wedge}$4 + x - 8*a${}^{\\wedge}$3*HoldForm[w[19]] - 4*a*HoldForm[w[19]]*} \\\\ \\;\\text{ HoldForm[w[20]] + HoldForm[w[20]]${}^{\\wedge}$2 + 8*a${}^{\\wedge}$2*HoldForm[w[21]]} \\\\ \\;\\text{ );} \\\\ \\end{array}\\]","anchor":"cb8-1","section":"Examples"},{"text":"DeleteFile[If[$OperatingSystem === \"MacOS\", \":\", \"\"] <> tempfilename]","anchor":"cb9","section":"Examples"},{"text":"This is how to write out the expression t2 in Fortran format.","anchor":"cb9-1","section":"Examples"},{"text":"Write2[tempfilename, r = t2, FormatType -> FortranForm];","anchor":"cb10","section":"Examples"},{"text":"TableForm[ReadList[If[$OperatingSystem === \"MacOS\", \":\", \"\"] <> tempfilename, String]]","anchor":"cb11","section":"Examples"},{"text":"\\[\\begin{array}{l} \\;\\text{ w(19)= b + c} \\\\ \\;\\text{ w(20)= b**2 + c**2} \\\\ \\;\\text{ w(21)= b**2 + b*c + c**2} \\\\ \\;\\text{ r = x + a**4*4D0 - a**3*8D0*w(19) - a*4D0*w(19)*w(20) + } \\\\ \\;\\text{ $\\&$ w(20)**2 + a**2*8D0*w(21)} \\\\ \\;\\text{ } \\\\ \\end{array}\\]","anchor":"cb11-1","section":"Examples"},{"text":"DeleteFile[If[$OperatingSystem === \"MacOS\", \":\", \"\"] <> tempfilename]; Clear[w, t, t2, r, tempfilename];","anchor":"cb12","section":"Examples"}]
Loading