MCPcopy
hub / github.com/ethereum/research / degree

Method degree

polynomial_reconstruction/poly_gcd.py:50–53  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

48
49
50 def degree(self, p):
51 for i in range(len(p) - 1, -1, -1):
52 if p[i] % self.modulus != 0:
53 return i
54
55 def leading_coefficient(self, p):
56 if self.degree(p) is None:

Callers 11

mul_many_polysMethod · 0.95
mul_polysMethod · 0.95
leading_coefficientMethod · 0.95
truncate_polyMethod · 0.95
M_hgcdMethod · 0.95
M_gcdMethod · 0.95
zero_polynomial_via_gcdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected