Proposing Mathematica 9 compatibility fix
Posted: 7. Nov 2017, 12:49
Dear Florian and Mark,
I'm currently experimenting with the function to generate the 2-loop corrections to the Higgs pole mass.
However, I stumbled upon an incompatibility with Mathematica 9:
Since I have only Mathematica 9 on my computer, this is an issue for me.
However, I think this little issue is very easy to fix. I was able to fix it by adding
before the start of SARAH. So, since it is easy to fix, what do you think about replacing the calls of by the custom new function
In this way the call to would be compatible with Mathematica 9. What do you think?
Many thanks and best regards,
Alex
I'm currently experimenting with the
Code: Select all
Calc2LoopCorrections[EWSB]However, I stumbled upon an incompatibility with Mathematica 9:
Code: Select all
In[6]:= Calc2LoopCorrections[EWSB];
Calculating 2 loop corrections
Building Coupling List 4pt pole: Dynamic[fourptcouplingstatus]
Generating tadpole diagrams
Extract::psl: Position specification {All, 1, 1} in
Extract[{{{C[Ah, Ah, hh]}, {CouplingAhAhhh, cplAhAhhh}, {}, {λ, v},
-I v λ, {Ah, Ah, hh}}, <<14>>,
{{C[Fu, VG, bar[Fu]]}, <<5>>,
{bar[Fu[{gt1, ct1}]], Fu[<<1>>], VG[{ct3, lt3}]}}}, {All, <<2>>}] is not
a machine-sized integer or a list of machine-sized integers.
However, I think this little issue is very easy to fix. I was able to fix it by adding
Code: Select all
Unprotect[Extract];
Extract[expr_, {All,1,1}] := First[First[#]]& /@ expr;
Protect[Extract];
Code: Select all
Extract[_,{All,1,1}]Code: Select all
(* equivalent to Extract[expr_,{All,1,1}] *)
ExtractAll11[expr_] := First[First[#]]& /@ expr;
Code: Select all
Calc2LoopCorrections[EWSB]Many thanks and best regards,
Alex