MCPcopy Create free account
hub / github.com/ActiveState/code / integerZero

Method integerZero

recipes/Python/576608_Cubic/recipe-576608.py:173–181  ·  view source on GitHub ↗

Computes Integers zeros of d coefficient

(self)

Source from the content-addressed store, hash-verified

171 return ""
172
173 def integerZero(self):
174 """ Computes Integers zeros of d coefficient """
175
176 res = []
177 for item in range (1,abs(self.__d)+1):
178 if self.__d%item == 0:
179 res.append(item)
180 res.append(-1*item)
181 return res
182
183 def nonintegersRationalZero(self):
184 """ Computes noninteger rational zeros """

Callers 3

__str__Method · 0.80
syntheticDivisionMethod · 0.80

Calls 2

rangeFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected