File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/sage/dynamics/arithmetic_dynamics Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -338,10 +338,10 @@ def __call__(self, input):
338
338
...
339
339
TypeError: unable to convert {(4 : 1), (2 : 1)} to an element of Rational Field
340
340
"""
341
- result = []
341
+ result = set ()
342
342
for ds in self .defining_systems ():
343
- result .append (ds (self .domain ()(input )))
344
- return set ( result )
343
+ result .add (ds (self .domain ()(input )))
344
+ return result
345
345
346
346
def base_ring (self ):
347
347
r"""
@@ -434,10 +434,10 @@ def defining_polynomials(self):
434
434
sage: f.defining_polynomials()
435
435
{(x, y), (x^2, y^2)}
436
436
"""
437
- result = []
437
+ result = set ()
438
438
for ds in self .defining_systems ():
439
- result .append (ds .defining_polynomials ())
440
- return set ( result )
439
+ result .add (ds .defining_polynomials ())
440
+ return result
441
441
442
442
def defining_systems (self ):
443
443
r"""
You can’t perform that action at this time.
0 commit comments