Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Saher-Amasha committed May 28, 2021
1 parent 330a6d0 commit 46fc21e
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions src/sage/dynamics/arithmetic_dynamics/projective_ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -5611,6 +5611,14 @@ def all_rational_preimages(self, points):
[(-9 : -4 : 1), (0 : -1 : 1), (0 : 0 : 1), (0 : 1 : 1), (0 : 4 : 1),
(1 : 0 : 1), (1 : 1 : 1), (1 : 2 : 1), (1 : 3 : 1)]
A dynamical systems over function field example::
sage: FF.<t> = FunctionField(GF(17))
sage: P.<x,y> = ProjectiveSpace(FF, 1)
sage: DS = DynamicalSystem([x^2 + y^2, y^2])
sage: DS.all_rational_preimages(P(1,1))
[(0 : 1), (4 : 1), (13 : 1)]
A non-periodic example ::
sage: P.<x,y> = ProjectiveSpace(QQ,1)
Expand Down Expand Up @@ -5644,21 +5652,7 @@ def all_rational_preimages(self, points):
sage: P.<u,v> = ProjectiveSpace(K,1)
sage: f = DynamicalSystem_projective([u^2+v^2, v^2])
sage: f.all_rational_preimages(P(4))
[(-w : 1), (w : 1)]
A dynamical systems over function field example::
sage: K = GF(17)
sage: FF.<t> = FunctionField(K)
sage: P.<x,y> = ProjectiveSpace(FF,1)
sage: DS = DynamicalSystem([(1/t)*x^2 + y^2 ,y^2])
sage: DS.normalize_coordinates()
sage: base = DS.base_ring()
sage: CF = base.constant_field()
sage: D = DS.domain()
sage: DS.all_rational_preimages(D(1,1))
[(0 : 1)]
[(-w : 1), (w : 1)]
"""

from sage.rings.function_field.function_field import RationalFunctionField_global
Expand Down

0 comments on commit 46fc21e

Please sign in to comment.