@@ -423,33 +423,6 @@ cdef class fmpz_poly(flint_poly):
423
423
fmpz_poly_resultant(res.val, self .val, (< fmpz_poly> other).val)
424
424
return res
425
425
426
- def resultant_modular (self , other ):
427
- """
428
- Returns the resultant of *self* and *other* using Collins' 1971 modular
429
- algorithm.
430
-
431
- >>> A = fmpz_poly([1, 0, -1]); B = fmpz_poly([1, -1])
432
- >>> A.resultant_modular(B)
433
- 0
434
- >>> C = fmpz_poly([1, 0, 0, 0, 0, -1, 1])
435
- >>> D = fmpz_poly([1, 0, 0, -1, 0, 0, 1])
436
- >>> C.resultant_modular(D)
437
- 3
438
- >>> f = fmpz_poly([1, -1] + [0] * 98 + [1])
439
- >>> g = fmpz_poly([1] + [0] * 50 + [-1] + [0] * 48 + [1])
440
- >>> f.resultant_modular(g)
441
- 1125899906842623
442
-
443
- """
444
- cdef fmpz res
445
- other = any_as_fmpz_poly(other)
446
- if other is NotImplemented :
447
- raise TypeError (" cannot convert input to fmpz_poly" )
448
-
449
- res = fmpz.__new__ (fmpz)
450
- fmpz_poly_resultant_modular(res.val, self .val, (< fmpz_poly> other).val)
451
- return res
452
-
453
426
def factor (self ):
454
427
"""
455
428
Factors self into irreducible factors, returning a tuple
0 commit comments