#13735: Fixing a bug in sage.misc.misc.coeff_repr
----------------------------------------------+-----------------------------
Reporter: stumpc5 | Owner: sage-combinat
Type: defect | Status: needs_work
Priority: major | Milestone: sage-5.10
Component: combinatorics | Resolution:
Keywords: coefficient repr | Work issues:
Report Upstream: N/A | Reviewers: Andrey
Novoseltsev
Authors: Christian Stump, Vít Tuček | Merged in:
Dependencies: #4327 | Stopgaps:
----------------------------------------------+-----------------------------
Changes (by jdemeyer):
* dependencies: => #4327
Comment:
With #4327:
{{{
sage -t devel/sage/sage/combinat/root_system/root_lattice_realizations.py
**********************************************************************
File "devel/sage/sage/combinat/root_system/root_lattice_realizations.py",
line 1840, in
sage.combinat.root_system.root_lattice_realizations.RootLatticeRealizations.Pare
ntMethods.plot_roots
Failed example:
list(RootSystem(["A",2]).root_lattice().plot_roots("all"))
Expected:
[Arrow from (0.0,0.0) to (1.0,0.0),
Text '$\alpha_{1}$' at the point (1.05,0.0),
Arrow from (0.0,0.0) to (0.0,1.0),
Text '$\alpha_{2}$' at the point (0.0,1.05),
Arrow from (0.0,0.0) to (1.0,1.0),
Text '$\alpha_{1} + \alpha_{2}$' at the point (1.05,1.05),
Arrow from (0.0,0.0) to (-1.0,0.0),
Text '$\left(-1\right)\alpha_{1}$' at the point (-1.05,0.0),
Arrow from (0.0,0.0) to (0.0,-1.0),
Text '$\left(-1\right)\alpha_{2}$' at the point (0.0,-1.05),
Arrow from (0.0,0.0) to (-1.0,-1.0),
Text '$\left(-1\right)\alpha_{1} + \left(-1\right)\alpha_{2}$' at the
point (-1.05,-1.05)]
Got:
[Arrow from (0.0,0.0) to (1.0,0.0), Text '$\alpha_{1}$' at the point
(1.05,0.0), Arrow from (0.0,0.0) to (0.0,1.0), Text '$\alpha_{2}$' at the
point (0.0,1.05), Arr
ow from (0.0,0.0) to (1.0,1.0), Text '$\alpha_{1} + \alpha_{2}$' at the
point (1.05,1.05), Arrow from (0.0,0.0) to (-1.0,0.0), Text
'$-\alpha_{1}$' at the point (-1.05,
0.0), Arrow from (0.0,0.0) to (0.0,-1.0), Text '$-\alpha_{2}$' at the
point (0.0,-1.05), Arrow from (0.0,0.0) to (-1.0,-1.0), Text '$-\alpha_{1}
- \alpha_{2}$' at the p
oint (-1.05,-1.05)]
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13735#comment:23>
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.