Skip to content

Commit

Permalink
fixed a potentially incorrect division in WeylGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Aug 14, 2024
1 parent a1e3396 commit c9fa6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/packages/WeylGroups.m2
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ scalarProduct(RootSystem,ZZ,ZZ) := (R,i,j) ->
--the scalar product of two general weights
scalarProduct(RootSystem,Weight,Weight) := (R,u,v) ->
(
sum apply(apply(entries((R.CartanMatrixTrInv)*u),entries(v),(x,y)->x*y),R.RootNorms,(x,y)->x*y)//2
sum apply(apply(entries((R.CartanMatrixTrInv)*u),entries(v),(x,y)->x*y),R.RootNorms,(x,y)->x*y) / 2
)

--the scalar product of the i-th fundamental weight with a general weight
Expand Down

0 comments on commit c9fa6cf

Please sign in to comment.