Skip to content

Commit

Permalink
changed RingElement / Number and Permanents::glynn
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Aug 14, 2024
1 parent 80e30c8 commit 54878c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion M2/Macaulay2/m2/enginering.m2
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ RingElement / RingElement := RingElement => (f,g) -> (
frac0 = (f,g) -> f/g

Number / RingElement := frac0 @@ promoteleftexact
RingElement / Number := (f,g) -> (1/g) * f
RingElement / Number := frac0 @@ promoterightexact

InexactNumber / RingElement := frac0 @@ promoteleftinexact
RingElement / InexactNumber := (f,g) -> (1/g) * f
Expand Down
2 changes: 1 addition & 1 deletion M2/Macaulay2/packages/Permanents.m2
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ glynn Matrix := (M) -> (

--need to divide in Glynn's formula
--so can't be characteristic 2
perm=perm//2^(n-1);
perm=perm / 2^(n-1);
perm
)

Expand Down

0 comments on commit 54878c5

Please sign in to comment.