Ask Your Question

Revision history [back]

ArithmeticError: reduction modulo not defined

I have tried performed modulo operation:

and I got this:

ArithmeticError Traceback (most recent call last) <ipython-input-1-b13f3c6e195a> in <module>

 54     print(" po podziale x 2")
 55     xP, yP = Pp.xy()

---> 56 uu = xQ % xP

   57     print( f"uu mod = {(uu)} " )

/home/sc_serv/sage/local/lib/python3.8/site-packages/sage/rings/finite_rings/integer_mod.pyx in sage.rings.finite_rings.integer_mod.IntegerMod_abstract.__mod__ (build/cythonized/sage/rings/finite_rings/integer_mod.c:7287)() 493 R = IntegerModRing(modulus) 494 if (<element>self)._parent._IntegerModRing_generic__order % R.order(): --> 495 raise ArithmeticError(f"reduction modulo {modulus!r} not defined") 496 return R(self) 497

ArithmeticError: reduction modulo 55066263022277343669578718895168534326250603453777594175500187360389116729240 not defined

i don't understand in python work

ArithmeticError: reduction modulo not defined

I have tried performed modulo operation:

and I got this:

ArithmeticError                           Traceback (most recent call last) <ipython-input-1-b13f3c6e195a> in <module>

<module>

     54     print(" po podziale x 2")
  55     xP, yP = Pp.xy()

Pp.xy() ---> 56 uu = xQ % xP

    57     print( f"uu mod = {(uu)} " )

) /home/sc_serv/sage/local/lib/python3.8/site-packages/sage/rings/finite_rings/integer_mod.pyx in sage.rings.finite_rings.integer_mod.IntegerMod_abstract.__mod__ (build/cythonized/sage/rings/finite_rings/integer_mod.c:7287)() 493 R = IntegerModRing(modulus) 494 if (<element>self)._parent._IntegerModRing_generic__order (<Element>self)._parent._IntegerModRing_generic__order % R.order(): --> 495 raise ArithmeticError(f"reduction modulo {modulus!r} not defined") 496 return R(self) 497

ArithmeticError: reduction modulo 55066263022277343669578718895168534326250603453777594175500187360389116729240 not defined

defined

i don't understand in python work

ArithmeticError: reduction modulo not defined

I have tried performed modulo operation:

and I got this:

ArithmeticError                           Traceback (most recent call last) <ipython-input-1-b13f3c6e195a> in <module>

     54     print(" po podziale x 2")
     55     xP, yP = Pp.xy() 
  ---> 56     uu = xQ % xP 

       57     print( f"uu mod = {(uu)} " ) 

/home/sc_serv/sage/local/lib/python3.8/site-packages/sage/rings/finite_rings/integer_mod.pyx in sage.rings.finite_rings.integer_mod.IntegerMod_abstract.__mod__ (build/cythonized/sage/rings/finite_rings/integer_mod.c:7287)()
    493         R = IntegerModRing(modulus)
    494         if (<Element>self)._parent._IntegerModRing_generic__order % R.order():
--> 495             raise ArithmeticError(f"reduction modulo {modulus!r} not defined")
    496         return R(self)
    497 

ArithmeticError: reduction modulo 55066263022277343669578718895168534326250603453777594175500187360389116729240 not defined

i don't understand in python work

xQ = 0x5699b93fc6e1bd29e09a328d657a607b4155b61a6b5fcbedd7c12df7c67df8f5

xP = 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798