Skip to content

Commit 5082c78

Browse files
committed
fix: add modulus arg to acb.__rpow__
1 parent fcda89f commit 5082c78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/flint/acb.pyx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,11 @@ cdef class acb(flint_scalar):
458458
if ttype == FMPZ_TMP: acb_clear(tval)
459459
return u
460460

461-
def __rpow__(s, t):
461+
def __rpow__(s, t, u):
462462
cdef acb_struct tval[1]
463463
cdef int ttype
464+
if u is not None:
465+
raise ValueError("modular exponentiation of complex number")
464466
ttype = acb_set_any_ref(tval, t)
465467
if ttype == FMPZ_UNKNOWN:
466468
return NotImplemented

0 commit comments

Comments
 (0)