Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Definitely some kind of bug.

sage: gaunt(1,1,1,0,1,-1)
0
sage: gaunt(int(1),int(1),int(1),int(0),int(1),int(-1))
1/2*sqrt(3)/sqrt(pi)

(Notice you don't have to actually import it to use it.)

The problem is that there is some division going on that doesn't check types.

bigL = (l_1 + l_2 + l_3) / 2

and

sage: (int(1)+int(1)+int(1))/int(2)
1
sage: (1+1+1)/2
3/2

For now you can get around this by using srange (Sage range, as it were):

sage: type(range(0,2)[0])
int
sage: type(srange(0,2)[0])
sage.rings.integer.Integer

I'll open a ticket momentarily.

Definitely some kind of bug.

sage: gaunt(1,1,1,0,1,-1)
0
sage: gaunt(int(1),int(1),int(1),int(0),int(1),int(-1))
1/2*sqrt(3)/sqrt(pi)

(Notice you don't have to actually import it to use it.)

The problem is that there is some division going on that doesn't check types.

bigL = (l_1 + l_2 + l_3) / 2

and

sage: (int(1)+int(1)+int(1))/int(2)
1
sage: (1+1+1)/2
3/2

For now you can get around this by using srange (Sage range, as it were):

sage: type(range(0,2)[0])
int
sage: type(srange(0,2)[0])
sage.rings.integer.Integer

I'll open a This is now ticket momentarily.14735.