Package: libecm-dev
Version: 6.4.4-2

While working on sagemath-on-debian, I met the following issue : the sample code below, when compiled against sage's ECM tells me 1 is a factor of 1 ; and "No factor found" when compiled against debian's...

Snark on #debian-science



#include <ecm.h>

int
main(int argc, char *argv[])
{
  mpz_t n, f;
  int res;

  mpz_init(n);
  mpz_set_d(n, 1);
  mpz_init(f);
  res = ecm_factor (f, n, 100, NULL);
  if (res == 0)
    gmp_printf("No factor found\n");
  else
    gmp_printf("%Zd\n", f);
  return 0;
}


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to