Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Forgot a minus sign.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Scrimshaw committed Jan 26, 2016
1 parent 4714f1a commit b23174c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/combinat/crystals/littelmann_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,15 +1357,15 @@ def weight(self):
sage: f_seq = [1,4,2,6,4,2,3,1,5,5]
sage: x = mg.f_string(f_seq)
sage: x.weight()
3*Lambda[1] + 2*Lambda[2] - 2*Lambda[3] - Lambda[4] + Lambda[5]
-3*Lambda[1] - 2*Lambda[2] + 2*Lambda[3] + Lambda[4] - Lambda[5]
sage: al = B.cartan_type().root_system().weight_space().simple_roots()
sage: x.weight() == sum(al[i] for i in f_seq)
sage: x.weight() == -sum(al[i] for i in f_seq)
True
"""
WLR = self.parent().weight_lattice_realization()
alpha = WLR.simple_roots()
return WLR.sum(alpha[i] for i in self.to_highest_weight()[1])
return -WLR.sum(alpha[i] for i in self.to_highest_weight()[1])

def phi(self,i):
r"""
Expand All @@ -1391,7 +1391,7 @@ def phi(self,i):
sage: mg = B.highest_weight_vector()
sage: x = mg.f_string([1,3,4,2,4,3,2,1,4])
sage: [x.phi(i) for i in B.index_set()]
[3, -2, 2, 5]
[-1, 4, -2, -3]
"""
WLR = self.parent().weight_lattice_realization()
h = WLR.simple_coroots()
Expand Down

0 comments on commit b23174c

Please sign in to comment.