Skip to content

Commit b440953

Browse files
authored
Merge pull request #46 from DR-algo/pacletSetup
Typos and printing issues
2 parents fec09dd + e7a26f6 commit b440953

File tree

4 files changed

+21827
-6847
lines changed

4 files changed

+21827
-6847
lines changed

Kernel/DRalgo.m

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
$InstallGroupMath = False];
5757

5858

59-
Unprotect@Definition;
59+
(*Unprotect@Definition;
6060
Definition[x_Symbol] /; StringMatchQ[Context[x], "Package`" ~~ ___] :=
6161
StringReplace[ToString@FullDefinition[x],
6262
(WordCharacter .. ~~ DigitCharacter ... ~~ "`") .. ~~ s_ :> s
6363
];
64-
Protect@Definition;
64+
Protect@Definition;*)
6565

6666

6767
(*
@@ -572,16 +572,18 @@
572572
(*
573573
Prints constants that appear in the effective theory.
574574
*)
575-
PrintConstants[]:=Module[{},
576-
ToExpression[StringReplace[ToString[StandardForm[{Lb->(Log[\[Mu]^2/T^2]-2 Log[4 \[Pi]]+2EulerGamma),Lf->(Log[\[Mu]^2/T^2]-2 Log[4 \[Pi]]+2EulerGamma+4 Log[2])}]],"DRalgo`Private`"->""]]
575+
PrintConstants[]:=Module[{constantList},
576+
constantList = {Lb->(Log[\[Mu]^2/T^2]-2 Log[4 \[Pi]]+2EulerGamma),Lf->(Log[\[Mu]^2/T^2]-2 Log[4 \[Pi]]+2EulerGamma+4 Log[2])};
577+
OutputFormatDR[constantList]
577578
];
578579

579580

580581
(*
581582
Replaces the Glaisher constant by c, which is sometimes used in the litterature. See for example hep-ph: 9508379
582583
*)
583-
PrintGenericBasis[]:=Module[{},
584-
ToExpression[StringReplace[ToString[StandardForm[{Log[Glaisher]->-1/12 (Lb+2cplus-EulerGamma)}]],"DRalgo`Private`"->""]]
584+
PrintGenericBasis[]:=Module[{basisReplacements},
585+
basisReplacements = {Log[Glaisher]->-1/12 (Lb+2cplus-EulerGamma)};
586+
OutputFormatDR[basisReplacements]
585587
];
586588

587589

0 commit comments

Comments
 (0)