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 @@ -340,10 +340,10 @@ def __call__(self, input):
340
340
...
341
341
TypeError: unable to convert {(4 : 1), (2 : 1)} to an element of Rational Field
342
342
"""
343
- result = []
343
+ result = set ()
344
344
for ds in self .defining_systems ():
345
- result .append (ds (self .domain ()(input )))
346
- return set ( result )
345
+ result .add (ds (self .domain ()(input )))
346
+ return result
347
347
348
348
def base_ring (self ):
349
349
r"""
@@ -436,10 +436,10 @@ def defining_polynomials(self):
436
436
sage: f.defining_polynomials()
437
437
{(x, y), (x^2, y^2)}
438
438
"""
439
- result = []
439
+ result = set ()
440
440
for ds in self .defining_systems ():
441
- result .append (ds .defining_polynomials ())
442
- return set ( result )
441
+ result .add (ds .defining_polynomials ())
442
+ return result
443
443
444
444
def defining_systems (self ):
445
445
r"""
You can’t perform that action at this time.
0 commit comments