#19312: Update to pynac-0.5.0
-------------------------------------+-------------------------------------
Reporter: rws | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.10
Component: packages: | Resolution:
standard | Merged in:
Keywords: | Reviewers:
Authors: Ralf Stephan | Work issues:
Report Upstream: N/A | Commit:
Branch: u/rws/19312-2 | dfb2ba3790253582ca7ec2e5eb6ce3c2aadbe798
Dependencies: #19606 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jdemeyer):
There are various doctest failures:
{{{
sage -t --long src/sage/combinat/finite_state_machine.py
**********************************************************************
File "src/sage/combinat/finite_state_machine.py", line 10001, in
sage.combinat.finite_state_machine.FiniteStateMachine.?
Failed example:
R.<phi> = NumberField(x^2-x-1, embedding=golden_ratio)
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.combinat.finite_state_machine.FiniteStateMachine.?[11]>", line 1, in
<module>
R = NumberField(x**Integer(2)-x-Integer(1),
embedding=golden_ratio, names=('phi',)); (phi,) = R._first_ngens(1)
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/rings/number_field/number_field.py", line 490, in
NumberField
return NumberField_version2(polynomial=polynomial, name=name,
check=check, embedding=embedding, latex_name=latex_name,
assume_disc_small=assume_disc_small,
maximize_at_primes=maximize_at_primes, structure=structure)
File "sage/structure/factory.pyx", line 366, in
sage.structure.factory.UniqueFactory.__call__
(build/cythonized/sage/structure/factory.c:1328)
return self.get_object(version, key, kwds)
File "sage/structure/factory.pyx", line 410, in
sage.structure.factory.UniqueFactory.get_object
(build/cythonized/sage/structure/factory.c:1734)
obj = self.create_object(version, key, **extra_args)
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/rings/number_field/number_field.py", line 612, in
create_object
return NumberField_quadratic(polynomial, name, latex_name, check,
embedding, assume_disc_small=assume_disc_small,
maximize_at_primes=maximize_at_primes, structure=structure)
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/rings/number_field/number_field.py", line 10070, in __init__
assume_disc_small=assume_disc_small,
maximize_at_primes=maximize_at_primes, structure=structure)
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/rings/number_field/number_field.py", line 6421, in __init__
assume_disc_small=assume_disc_small,
maximize_at_primes=maximize_at_primes, structure=structure)
File "/usr/local/src/sage-config/local/lib/python2.7/site-
packages/sage/rings/number_field/number_field.py", line 1202, in __init__
embedding =
number_field_morphisms.create_embedding_from_approx(self, embedding)
File "sage/rings/number_field/number_field_morphisms.pyx", line 503,
in
sage.rings.number_field.number_field_morphisms.create_embedding_from_approx
(build/cythonized/sage/rings/number_field/number_field_morphisms.c:7328)
raise ValueError, "%s is not a root of the defining polynomial of
%s" % (gen_image, K)
ValueError: golden_ratio is not a root of the defining polynomial of
Number Field in phi with defining polynomial x^2 - x - 1
**********************************************************************
File "src/sage/combinat/finite_state_machine.py", line 10002, in
sage.combinat.finite_state_machine.FiniteStateMachine.?
Failed example:
N = NAFp.number_of_words(base_ring=R); N
Expected:
1/5*(3*golden_ratio + 1)*golden_ratio^n
- 1/5*(3*golden_ratio - 4)*(-golden_ratio + 1)^n
Got:
1/10*(1/2*sqrt(5) + 1/2)^n*(3*sqrt(5) + 5) - 1/10*(-1/2*sqrt(5) +
1/2)^n*(3*sqrt(5) - 5)
**********************************************************************
File "src/sage/functions/other.py", line 1693, in
sage.functions.other.Function_beta.__init__
Failed example:
beta(1/3, 1/2)
Expected:
beta(1/2, 1/3)
Got:
beta(1/3, 1/2)
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/19312#comment:31>
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.