@@ -887,15 +887,15 @@ cdef class Pygen(GiacMethods_base):
887
887
return result
888
888
else:
889
889
sig_on( )
890
- result = str( self. type) + "\n Result is too big for Display. If you really want to see it use print"
890
+ result = str( self. type) + "\n Result is too big for Display. If you really want to see it use print"
891
891
sig_off( )
892
892
return result
893
893
894
894
def __str__( self) :
895
895
#if self. gptr == NULL:
896
896
# return ''
897
897
sig_on( )
898
- result= decstring23( GIAC_print( self. gptr[0 ], context_ptr) . c_str( )) #python3
898
+ result = decstring23( GIAC_print( self. gptr[0 ], context_ptr) . c_str( ))
899
899
sig_off( )
900
900
return result
901
901
@@ -960,15 +960,15 @@ cdef class Pygen(GiacMethods_base):
960
960
if( i<0) :
961
961
i=i+ n
962
962
sig_on( )
963
- result= self. gptr[0 ][<int>i ]
963
+ result = self. gptr[0 ][<int>i ]
964
964
sig_off( )
965
965
return _wrap_gen( result)
966
966
else:
967
967
raise IndexError( 'list index %s out of range'%( i))
968
968
else:
969
969
if isinstance( i,slice) :
970
970
sig_on( )
971
- result= gen( _getgiacslice( self,i) ,<short int>self. _subtype)
971
+ result = gen( _getgiacslice( self,i) ,<short int>self. _subtype)
972
972
sig_off( )
973
973
return _wrap_gen( result)
974
974
# add support for multi indexes
@@ -1065,7 +1065,7 @@ cdef class Pygen(GiacMethods_base):
1065
1065
def eval( self) :
1066
1066
cdef gen result
1067
1067
sig_on( )
1068
- result= GIAC_protecteval( self. gptr[0 ],giacsettings. eval_level,context_ptr)
1068
+ result = GIAC_protecteval( self. gptr[0 ],giacsettings. eval_level,context_ptr)
1069
1069
sig_off( )
1070
1070
return _wrap_gen( result)
1071
1071
@@ -1078,7 +1078,7 @@ cdef class Pygen(GiacMethods_base):
1078
1078
if not isinstance( self, Pygen) :
1079
1079
self=Pygen( self)
1080
1080
sig_on( )
1081
- result= ( <Pygen>self) . gptr[0 ] + ( <Pygen>right) . gptr[0 ]
1081
+ result = ( <Pygen>self) . gptr[0 ] + ( <Pygen>right) . gptr[0 ]
1082
1082
sig_off( )
1083
1083
return _wrap_gen( result)
1084
1084
@@ -1128,7 +1128,7 @@ cdef class Pygen(GiacMethods_base):
1128
1128
if not isinstance( self, Pygen) :
1129
1129
self=Pygen( self)
1130
1130
sig_on( )
1131
- result= ( <Pygen>self) . gptr[0 ] - ( <Pygen>right) . gptr[0 ]
1131
+ result = ( <Pygen>self) . gptr[0 ] - ( <Pygen>right) . gptr[0 ]
1132
1132
sig_off( )
1133
1133
return _wrap_gen( result)
1134
1134
@@ -1147,7 +1147,7 @@ cdef class Pygen(GiacMethods_base):
1147
1147
right = Pygen( right)
1148
1148
if not isinstance( self, Pygen) :
1149
1149
self = Pygen( self)
1150
- #result= ( <Pygen>self) . gptr[0 ] * ( <Pygen>right) . gptr[0 ]
1150
+ #result = ( <Pygen>self) . gptr[0 ] * ( <Pygen>right) . gptr[0 ]
1151
1151
#NB: with the natural previous method, the following error generated by
1152
1152
#giac causes python to quit instead of an error message.
1153
1153
#l=Pygen( [1,2 ]) ;l. transpose( ) * l;
@@ -1184,7 +1184,7 @@ cdef class Pygen(GiacMethods_base):
1184
1184
if not isinstance( self, Pygen) :
1185
1185
self = Pygen( self)
1186
1186
sig_on( )
1187
- result= ( <Pygen>self) . gptr[0 ] / ( <Pygen>right) . gptr[0 ]
1187
+ result = ( <Pygen>self) . gptr[0 ] / ( <Pygen>right) . gptr[0 ]
1188
1188
sig_off( )
1189
1189
return _wrap_gen( result)
1190
1190
@@ -1195,7 +1195,7 @@ cdef class Pygen(GiacMethods_base):
1195
1195
if not isinstance( self, Pygen) :
1196
1196
self = Pygen( self)
1197
1197
sig_on( )
1198
- result= GIAC_pow(( <Pygen>self) . gptr[0 ], ( <Pygen>right) . gptr[0 ], context_ptr )
1198
+ result = GIAC_pow(( <Pygen>self) . gptr[0 ], ( <Pygen>right) . gptr[0 ], context_ptr )
1199
1199
sig_off( )
1200
1200
return _wrap_gen( result)
1201
1201
@@ -1205,12 +1205,12 @@ cdef class Pygen(GiacMethods_base):
1205
1205
right = Pygen( right)
1206
1206
if not isinstance( self, Pygen) :
1207
1207
self = Pygen( self)
1208
- #result= gen( GIAC_makenewvecteur(( <Pygen>self) . gptr[0 ],( <Pygen>right) . gptr[0 ]) ,<short int>1)
1208
+ #result = gen( GIAC_makenewvecteur(( <Pygen>self) . gptr[0 ],( <Pygen>right) . gptr[0 ]) ,<short int>1)
1209
1209
#to have an integer output:
1210
- #result= GIAC_smod( result,context_ptr)
1210
+ #result = GIAC_smod( result,context_ptr)
1211
1211
#we give a modular output:
1212
1212
sig_on( )
1213
- result= GIAC_giacmod(( <Pygen>self) . gptr[0 ], ( <Pygen>right) . gptr[0 ],context_ptr)
1213
+ result = GIAC_giacmod(( <Pygen>self) . gptr[0 ], ( <Pygen>right) . gptr[0 ],context_ptr)
1214
1214
sig_off( )
1215
1215
return _wrap_gen( result)
1216
1216
@@ -1338,7 +1338,7 @@ cdef class Pygen(GiacMethods_base):
1338
1338
\f rac{... x^ {4} ... -... y... }{... y^ {2} -3... x... }
1339
1339
"""
1340
1340
sig_on( )
1341
- result= decstring23( GIAC_gen2tex( self. gptr[0 ], context_ptr) . c_str( )) #python3
1341
+ result = decstring23( GIAC_gen2tex( self. gptr[0 ], context_ptr) . c_str( ))
1342
1342
sig_off( )
1343
1343
return result
1344
1344
@@ -1547,7 +1547,7 @@ cdef class Pygen(GiacMethods_base):
1547
1547
raise NotImplementedError( "Unable to parse Giac output: %s" % self. __repr__( ))
1548
1548
else:
1549
1549
try:
1550
- result= R( self. __str__( ))
1550
+ result = R( self. __str__( ))
1551
1551
return result
1552
1552
1553
1553
except Exception:
@@ -1668,7 +1668,7 @@ cdef class Pygen(GiacMethods_base):
1668
1668
if not isinstance(self, Pygen):
1669
1669
self = Pygen(self)
1670
1670
sig_on()
1671
- result= giacgenrichcmp((<Pygen>self).gptr[0],(<Pygen>other).gptr[0], op, context_ptr )
1671
+ result = giacgenrichcmp((<Pygen>self).gptr[0],(<Pygen>other).gptr[0], op, context_ptr )
1672
1672
sig_off()
1673
1673
return result == 1
1674
1674
@@ -1686,7 +1686,7 @@ cdef class Pygen(GiacMethods_base):
1686
1686
property _subtype:
1687
1687
def __get__(self):
1688
1688
sig_on()
1689
- result= self.gptr.subtype
1689
+ result = self.gptr.subtype
1690
1690
sig_off()
1691
1691
return result
1692
1692
@@ -1862,7 +1862,7 @@ cdef gen pylongtogen(a) except +:
1862
1862
#def giaceval(Pygen self):
1863
1863
# cdef gen result
1864
1864
# try:
1865
- # result= GIAC_protecteval(self.gptr[0],1,context_ptr)
1865
+ # result = GIAC_protecteval(self.gptr[0],1,context_ptr)
1866
1866
# return _wrap_gen(result)
1867
1867
# except:
1868
1868
# raise
@@ -1872,7 +1872,7 @@ cdef gen pylongtogen(a) except +:
1872
1872
#
1873
1873
# cdef gen result
1874
1874
# try:
1875
- # result= GIAC_factor(self.gptr[0],context_ptr)
1875
+ # result = GIAC_factor(self.gptr[0],context_ptr)
1876
1876
# return _wrap_gen(result)
1877
1877
# except:
1878
1878
# raise
@@ -1882,7 +1882,7 @@ cdef gen pylongtogen(a) except +:
1882
1882
#def giacfactors(Pygen self):
1883
1883
# cdef gen result
1884
1884
# try:
1885
- # result= GIAC_factors(self.gptr[0],context_ptr)
1885
+ # result = GIAC_factors(self.gptr[0],context_ptr)
1886
1886
# return _wrap_gen(result)
1887
1887
# except:
1888
1888
# raise
@@ -1893,7 +1893,7 @@ cdef gen pylongtogen(a) except +:
1893
1893
#def giacnormal(Pygen self):
1894
1894
# cdef gen result
1895
1895
# try:
1896
- # result= GIAC_normal(self.gptr[0],context_ptr)
1896
+ # result = GIAC_normal(self.gptr[0],context_ptr)
1897
1897
# return _wrap_gen(result)
1898
1898
# except:
1899
1899
# raise
@@ -1902,8 +1902,8 @@ cdef gen pylongtogen(a) except +:
1902
1902
#def giacgcd(Pygen a, Pygen b):
1903
1903
# cdef gen result
1904
1904
# try:
1905
- # result= gen( GIAC_makenewvecteur(a.gptr[0],b.gptr[0]) ,<short int>1)
1906
- # result= GIAC_gcd(result,context_ptr)
1905
+ # result = gen( GIAC_makenewvecteur(a.gptr[0],b.gptr[0]) ,<short int>1)
1906
+ # result = GIAC_gcd(result,context_ptr)
1907
1907
# return _wrap_gen(result)
1908
1908
# except:
1909
1909
# raise
@@ -1983,7 +1983,7 @@ for i in moremethods:
1983
1983
GiacMethods[i] = tmp
1984
1984
1985
1985
for i in mostkeywords+moremethods:
1986
- GiacMethods[i].__doc__ = eval("Pygen."+i+ ".__doc__")
1986
+ GiacMethods[i].__doc__ = eval("Pygen." + i + ".__doc__")
1987
1987
1988
1988
# To avoid conflicts we export only these few ones. Most giac keywords will be
1989
1989
# available through: libgiac.keywordname
@@ -2016,7 +2016,7 @@ def loadgiacgen(str filename):
2016
2016
"""
2017
2017
cdef gen result
2018
2018
sig_on()
2019
- result= GIAC_unarchive( <string>encstring23(filename), context_ptr)
2019
+ result = GIAC_unarchive( <string>encstring23(filename), context_ptr)
2020
2020
sig_off()
2021
2021
return _wrap_gen(result)
2022
2022
0 commit comments