@@ -219,7 +219,7 @@ cdef class NumberFieldElement(NumberFieldElement_base):
219
219
cdef NumberFieldElement x = < NumberFieldElement> t.__new__ (t)
220
220
x._parent = self ._parent
221
221
x.__fld_numerator = self .__fld_numerator
222
- x.__fld_denominator = self .__fld_denominator
222
+ x._fld_denominator = self ._fld_denominator
223
223
return x
224
224
225
225
cdef number_field(self ):
@@ -317,7 +317,7 @@ cdef class NumberFieldElement(NumberFieldElement_base):
317
317
True
318
318
"""
319
319
FieldElement.__init__ (self , parent)
320
- self .__fld_numerator, self .__fld_denominator = parent.absolute_polynomial_ntl()
320
+ self .__fld_numerator, self ._fld_denominator = parent.absolute_polynomial_ntl()
321
321
322
322
cdef ZZ_c coeff
323
323
if isinstance (f, (int , Integer_sage)):
@@ -417,7 +417,7 @@ cdef class NumberFieldElement(NumberFieldElement_base):
417
417
cdef type t = type (self )
418
418
cdef NumberFieldElement x = < NumberFieldElement> t.__new__ (t)
419
419
x._parent = < ParentWithBase> new_parent
420
- x.__fld_numerator, x.__fld_denominator = new_parent.polynomial_ntl()
420
+ x.__fld_numerator, x._fld_denominator = new_parent.polynomial_ntl()
421
421
x._denominator = self ._denominator
422
422
cdef ZZX_c result
423
423
cdef ZZ_c tmp
@@ -2577,11 +2577,11 @@ cdef class NumberFieldElement(NumberFieldElement_base):
2577
2577
else :
2578
2578
ZZX_mul(x._numerator, self ._numerator, _right._numerator)
2579
2579
if ZZX_deg(x._numerator) >= ZZX_deg(self .__fld_numerator.x):
2580
- ZZX_mul_ZZ( x._numerator, x._numerator, self .__fld_denominator .x )
2580
+ ZZX_mul_ZZ( x._numerator, x._numerator, self ._fld_denominator .x )
2581
2581
ZZX_mul_ZZ( temp, self .__fld_numerator.x, x._denominator )
2582
2582
ZZ_power(temp1,ZZX_LeadCoeff(temp),ZZX_deg(x._numerator)- ZZX_deg(self .__fld_numerator.x)+ 1 )
2583
2583
ZZX_PseudoRem(x._numerator, x._numerator, temp)
2584
- ZZ_mul(x._denominator, x._denominator, self .__fld_denominator .x)
2584
+ ZZ_mul(x._denominator, x._denominator, self ._fld_denominator .x)
2585
2585
ZZ_mul(x._denominator, x._denominator, temp1)
2586
2586
sig_off()
2587
2587
x._reduce_c_()
@@ -5323,7 +5323,7 @@ cdef class OrderElement_absolute(NumberFieldElement_absolute):
5323
5323
x._parent = self ._parent
5324
5324
x._number_field = self ._parent.number_field()
5325
5325
x.__fld_numerator = self .__fld_numerator
5326
- x.__fld_denominator = self .__fld_denominator
5326
+ x._fld_denominator = self ._fld_denominator
5327
5327
return x
5328
5328
5329
5329
cdef number_field(self ):
@@ -5444,7 +5444,7 @@ cdef class OrderElement_relative(NumberFieldElement_relative):
5444
5444
x._parent = self ._parent
5445
5445
x._number_field = self ._parent.number_field()
5446
5446
x.__fld_numerator = self .__fld_numerator
5447
- x.__fld_denominator = self .__fld_denominator
5447
+ x._fld_denominator = self ._fld_denominator
5448
5448
return x
5449
5449
5450
5450
def __invert__ (self ):
0 commit comments