#18622: Improve true division support in coercion model
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.8
Component: cython | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/improve_true_division_support_in_coercion_model|
f61588ecabefc84103c4daa40e648b76e6e58828
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by wluebbe):
* status: needs_review => needs_work
Comment:
Testing {{{--all --long}}} I got 4 doctest failures:
{{{
sage -t --long src/sage/structure/element.pyx
**********************************************************************
File "src/sage/structure/element.pyx", line 1695, in
sage.structure.element.MultiplicativeGroupElement.__truediv__
Failed example:
operator.truediv(2, K.ideal(i+1))
Expected:
Fractional ideal (-i + 1)
Got:
Fractional ideal (i + 1)
**********************************************************************
File "src/sage/structure/element.pyx", line 3042, in
sage.structure.element.Matrix.__truediv__
Failed example:
operator.truediv(a, b)
Exception raised:
Traceback (most recent call last):
File "/home/wluebbe/sage-6.8.beta3/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/wluebbe/sage-6.8.beta3/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.structure.element.Matrix.__truediv__[4]>", line
1, in <module>
operator.truediv(a, b)
TypeError: unsupported operand type(s) for /:
'sage.matrix.matrix_integer_dense.Matrix_integer_dense' and
'sage.matrix.matrix_integer_dense.Matrix_integer_dense'
**********************************************************************
File "src/sage/structure/element.pyx", line 3046, in
sage.structure.element.Matrix.__truediv__
Failed example:
operator.truediv(c, a)
Exception raised:
Traceback (most recent call last):
File "/home/wluebbe/sage-6.8.beta3/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/wluebbe/sage-6.8.beta3/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.structure.element.Matrix.__truediv__[6]>", line
1, in <module>
operator.truediv(c, a)
TypeError: unsupported operand type(s) for /:
'sage.matrix.matrix_rational_dense.Matrix_rational_dense' and
'sage.matrix.matrix_integer_dense.Matrix_integer_dense'
**********************************************************************
2 items had failures:
2 of 8 in sage.structure.element.Matrix.__truediv__
1 of 3 in
sage.structure.element.MultiplicativeGroupElement.__truediv__
[538 tests, 3 failures, 12.56 s]
}}}
and
{{{
sage -t --long src/sage/rings/number_field/number_field_ideal.py
**********************************************************************
File "src/sage/rings/number_field/number_field_ideal.py", line 1815, in
sage.rings.number_field.number_field_ideal.NumberFieldFractionalIdeal._div_
Failed example:
I/J
Expected:
Fractional ideal (-11/1420*a + 9/284)
Got:
Fractional ideal (-17/1420*a + 1/284)
**********************************************************************
1 item had failures:
1 of 7 in
sage.rings.number_field.number_field_ideal.NumberFieldFractionalIdeal._div_
[657 tests, 1 failure, 10.74 s]
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18622#comment:6>
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.
For more options, visit https://groups.google.com/d/optout.