summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Krenn <devel@danielkrenn.at>2015-01-04 14:29:35 +0100
committerDaniel Krenn <devel@danielkrenn.at>2015-01-04 14:29:35 +0100
commita3bc051976b51877b8c277ca61d9989dee33e8a6 (patch)
tree881a155d029f6b7a7501241ce97adbf6b8431a3d
parentremove .list, since not needed any may lead to confusion (diff)
some small changes in code during review
-rw-r--r--src/sage/combinat/asymptotics_multivariate_generating_functions.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sage/combinat/asymptotics_multivariate_generating_functions.py b/src/sage/combinat/asymptotics_multivariate_generating_functions.py
index 1a88f69..9eeaf9f 100644
--- a/src/sage/combinat/asymptotics_multivariate_generating_functions.py
+++ b/src/sage/combinat/asymptotics_multivariate_generating_functions.py
@@ -286,7 +286,7 @@ class FractionWithFactoredDenominator(sage.structure.element.RingElement):
- Daniel Krenn (2014-12-01)
"""
- def __init__(self, parent, numerator=None, denominator_factored=None,
+ def __init__(self, parent, numerator, denominator_factored,
reduce=True):
r"""
Create a FFPD instance.
@@ -456,7 +456,7 @@ class FractionWithFactoredDenominator(sage.structure.element.RingElement):
R = self.ring()
if is_PolynomialRing(R) or is_MPolynomialRing(R):
return R.ngens()
- return None
+ raise NotImplementedError('Only polynomial rings are supported as base.')
def quotient(self):
@@ -755,7 +755,7 @@ class FractionWithFactoredDenominator(sage.structure.element.RingElement):
- Alexander Raichev (2012-06-25)
- Daniel Krenn (2014-12-01)
"""
- if self.dimension() is None or self.dimension() > 1:
+ if self.dimension() > 1:
return FractionWithFactoredDenominatorSum([self])
R = self.ring()
@@ -2111,6 +2111,7 @@ class FractionWithFactoredDenominator(sage.structure.element.RingElement):
from sage.modules.free_module_element import vector
from sage.rings.all import CC
from sage.rings.arith import binomial
+ from sage.rings.rational_field import QQ
from sage.symbolic.constants import pi
from sage.symbolic.relation import solve
from sage.symbolic.ring import SR