Skip to content

Commit

Permalink
trying to track down bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kschwede committed Jun 25, 2024
1 parent 646011c commit c7501f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions NumberFields/NumberFields.m2
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,10 @@ splittingField(RingElement) := opts -> f1 -> (
finished := false;
i := 1;
idealList := {ideal curf1};
L1 := flatten apply(idealList, z->decompose z);
while not finished do (
print ("Starting a loop : " | toString(idealList));
L1 := flatten apply(idealList, z->decompose z);
idealList = select(L1, z->not isLinear z); --let's only keep the good ones.
print ("Starting a loop : " | toString(idealList));
idealList = select(idealList, z->not isLinear z); --let's only keep the good ones.
--print i;
--print curf1;
if opts.Verbose then print idealList;
Expand All @@ -401,7 +401,7 @@ splittingField(RingElement) := opts -> f1 -> (
SvarOld = Svar;
Svar = sub(varName#0, S1);
linTerm = Svar - psi(SvarOld);
phi1 = map(S1, R1, {Svar});
phi1 = map(S1, R1, {Svar}); --this is behaving badly
print phi1;
curf1old = phi1(curf1);
curf1 = curf1old;-- // linTerm; --is this working? --it is not.
Expand Down Expand Up @@ -454,7 +454,7 @@ isLinear(Ideal) := opts -> (J1) -> (
)

syntheticDivision = method(Options=>{})
syntheticDivision(RingElement, RingElement) := (f1, g1) -> (
syntheticDivision(RingElement, RingElement) := (f1, g1) -> ( --compute f1 / g1, where g1 = x-a, and where g1 divides f1

)

Expand Down

0 comments on commit c7501f2

Please sign in to comment.