def _mul_(self,other): res = Polynomial_generic_dense._mul_(self,other) Approximation.__init__(res,res.parent()) res._expected_degree = res.degree() res._length = res._expected_degree + 1 return res
def __init__(self, parent, x, check=True, is_gen=False, construct=False): Polynomial_generic_dense.__init__(self, parent, x, check=check, is_gen=is_gen, construct=construct) Approximation.__init__(self,parent) self._expected_degree = self.degree() self._length = self._expected_degree + 1
def __init__(self, parent, entries, copy, coerce): Matrix_generic_dense.__init__(self, parent, entries, copy, coerce) Approximation.__init__(self,parent) self._length = parent.dimension() self.set_immutable()
def _mul_(self,other): res = Matrix_generic_dense._mul_(self,other) Approximation.__init__(res,res.parent()) res.set_immutable() return res
def __init__(self,parent,x,val=0,normalized=False): RingElement.__init__(self,parent) Approximation.__init__(self,parent) self._x = QQ(x) self._val = val self._normalized = normalized