Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary forcing to univariate #38151

Merged
merged 6 commits into from
Jul 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/sage/dynamics/arithmetic_dynamics/projective_ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -8440,6 +8440,14 @@ def normal_form(self, return_conjugation=False):
To: Finite Field in z2 of size 3^2
Defn: 1 |--> 1

::

sage: R.<z> = PolynomialRing(QQ)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment says an implementation detail that is not understandable by a user. The usual way to introduce a test (example) for a fix is

TEST:

Check that :issue:`38012` is fixed::

    sage: R.<z> = PolynomialRing(QQ)

sage: f = DynamicalSystem_affine(z^2+z+1).homogenize(1)
sage: f.normal_form()
Dynamical System of Projective Space of dimension 1 over Rational Field
Defn: Defined on coordinates by sending (x0 : x1) to
(x0^2 + 5/4*x1^2 : x1^2)
"""
# defines the field of fixed points
if self.codomain().dimension_relative() != 1:
Expand Down Expand Up @@ -8468,7 +8476,8 @@ def normal_form(self, return_conjugation=False):
#we find one and not go all the way to the splitting field
i = 0
if G.degree() != 0:
G = G.polynomial(G.variable(0))
if is_MPolynomialRing(G.parent()):
G = G.polynomial(G.variable(0))
Nathabolin marked this conversation as resolved.
Show resolved Hide resolved
else:
#no other fixed points
raise NotImplementedError("map is not a polynomial")
Expand Down