chiark / gitweb /
mp: Remove checking from jacobi.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 17 Feb 2007 12:19:29 +0000 (12:19 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 17 Feb 2007 12:27:52 +0000 (12:27 +0000)
Now Catacomb uses the Kronecker symbol, which is defined for all pairs
of integers.  We no longer need to check that the arguments here are
correct.

mp.c

diff --git a/mp.c b/mp.c
index bc7f7a61e0b845bb2b59dddac97a6ec2896c36ec..ceb91424a70bc276317d0f53a944d92d75cf0948 100644 (file)
--- a/mp.c
+++ b/mp.c
@@ -557,8 +557,6 @@ static PyObject *mpmeth_jacobi(PyObject *me, PyObject *arg)
   PyObject *z = 0;
 
   if (!PyArg_ParseTuple(arg, "O&:jacobi", convmp, &y)) goto end;
-  if (MP_NEGP(MP_X(me)) || MP_EVENP(MP_X(me)))
-    VALERR("must be positive and odd");
   z = PyInt_FromLong(mp_jacobi(y, MP_X(me)));
 end:
   if (y) MP_DROP(y);