#14735: Bug with Python int division in wigner.py
----------------------------+-----------------------------------------------
Reporter: kcrisman | Owner: burcin
Type: defect | Status: new
Priority: minor | Milestone: sage-5.11
Component: calculus | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------+-----------------------------------------------
Description changed by kcrisman:
Old description:
> {{{
> 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)
> }}}
> This can come up when iterating over `range` instead of `srange`, which
> should be supported behavior (in my opinion, anyway). As far as I can
> tell, the only place this is an issue is
> {{{
> bigL = (l_1 + l_2 + l_3) / 2
> }}}
> but you never know.
>
> I'm putting this under "calculus" but that doesn't really feel right.
New description:
From [http://ask.sagemath.org/question/2683/different-answers-with-gaunt
this ask.sagemath question]:
{{{
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)
}}}
This can come up when iterating over `range` instead of `srange`, which
should be supported behavior (in my opinion, anyway). As far as I can
tell, the only place this is an issue is
{{{
bigL = (l_1 + l_2 + l_3) / 2
}}}
but you never know.
I'm putting this under "calculus" but that doesn't really feel right.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14735#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.