FORM2FeynCalc[exp]
translates the FORM expression exp
into FeynCalc notation.
FORM2FeynCalc[file]
translates the FORM expressions in file
into FeynCalc notation.
FORM2FeynCalc[file, x1, x2, ...]
reads in a file in FORM-format and translates the assignments for the variables into FeynCalc syntax.
If the option Set
is True
, the variables x1
, x2
are assigned to the right hand sides defined in the FORM-file.The capabilities of this function are very limited, so that you should not expect it to easily handle large and complicated expressions.
["p.q + 2*x m^2"] FORM2FeynCalc
["p.q + 2*x m^2"] // StandardForm
FORM2FeynCalc
(*2 x . m^2 + SP[p, q]*)
Functions are automatically converted in a proper way, but bracketed expressions need to be substituted explicitly.
["x +f(z)+ log(x)^2+[li2(1-x)]", Replace -> {"[li2(1-x)]" -> "PolyLog[2,1-x]"}] FORM2FeynCalc
["x +f(z)+ log(x)^2+[li2(1-x)]", Replace -> {"[li2(1-x)]" -> "PolyLog[2,1-x]"}] // StandardForm
FORM2FeynCalc
(*x + f[z] + Log[x]^2 + PolyLog[2, 1 - x]*)
["x + [(1)]*y -[(-1)^m]"] FORM2FeynCalc
ReleaseHold[FORM2FeynCalc["x + [(1)]*y -[(-1)^m]"]]
["p(mu)*q(nu)+d_(mu,nu)"] FORM2FeynCalc
["p(mu)*q(nu)+d_(mu,nu)"] // StandardForm
FORM2FeynCalc
(*p[mu] . q[nu] + MT[mu, nu]*)
["p(mu)*q(nu)+d_(mu,nu)", Replace -> {mu -> \[Mu], nu -> \[Nu]}] FORM2FeynCalc
["i_*az*bz*aM^2*D1*[(1)]*b_G1 * ( 4*eperp(mu,nu)*avec.bvec*blam )"] FORM2FeynCalc