@@ -688,14 +688,6 @@ cdef class Gen(Gen_auto):
688
688
def polred (self , *args , **kwds ):
689
689
r '''
690
690
This function is :emphasis:`deprecated`, use :meth:`. polredbest` instead.
691
-
692
- Tests:
693
-
694
- >>> from cypari2 import Pari
695
- >>> pari = Pari( )
696
-
697
- >>> pari( 'x^ 4 + 8') . polred( 2)
698
- [1, x - 1; 1/2*x^2 + 1, x^2 - 2*x + 3; -1/2*x^2 + 1, x^2 - 2*x + 3; 1/2*x^2, x^2 + 2; 1/4*x^3, x^4 + 2 ]
699
691
'''
700
692
import warnings
701
693
with warnings.catch_warnings():
@@ -2899,12 +2891,10 @@ cdef class Gen(Gen_auto):
2899
2891
>>> pari(1.0).sizeword() == (4 if bitness == '32' else 3)
2900
2892
True
2901
2893
2902
- >>> pari('x').sizeword()
2903
- 9
2904
- >>> pari('x^20').sizeword()
2905
- 66
2906
- >>> pari('[x, I]').sizeword()
2907
- 20
2894
+ >>> pari('x + 1').sizeword()
2895
+ 10
2896
+ >>> pari('[x + 1, 1]').sizeword()
2897
+ 16
2908
2898
"""
2909
2899
return gsizeword(x.g)
2910
2900
@@ -4504,14 +4494,6 @@ cdef class Gen(Gen_auto):
4504
4494
Traceback (most recent call last):
4505
4495
...
4506
4496
PariError: incorrect type in boundfact (t_POL)
4507
-
4508
- PARI doesn't have an algorithm for factoring multivariate
4509
- polynomials:
4510
-
4511
- >>> pari('x^3 - y^3').factor()
4512
- Traceback (most recent call last):
4513
- ...
4514
- PariError: sorry, factor for general polynomials is not yet implemented
4515
4497
"""
4516
4498
cdef GEN g
4517
4499
global factor_proven
@@ -4816,13 +4798,13 @@ cdef class Gen(Gen_auto):
4816
4798
>>> from cypari2 import Pari
4817
4799
>>> pari = Pari( )
4818
4800
4819
- >>> pari( '[1/2, 1.0*I ]') . debug( )
4801
+ >>> pari( '[1/2, 1 + 1 .0*I ]') . debug( )
4820
4802
[&=... ] VEC( lg=3) :...
4821
4803
1st component = [&=... ] FRAC( lg=3) :...
4822
4804
num = [&=... ] INT( lg=3) :... ( + ,lgefint=3) :...
4823
4805
den = [&=... ] INT( lg=3) :... ( + ,lgefint=3) :...
4824
4806
2nd component = [&=... ] COMPLEX( lg=3) :...
4825
- real = [&=... ] INT( lg=2 ) :... ( 0 ,lgefint=2 ) :...
4807
+ real = [&=... ] INT( lg=3 ) :... ( + ,lgefint=3 ) :...
4826
4808
imag = [&=... ] REAL( lg=3) :... ( + ,expo=0) :...
4827
4809
"""
4828
4810
sig_on()
0 commit comments