version 1.1.1.1, 2000/09/09 14:13:19 |
version 1.1.1.2, 2003/08/25 16:06:03 |
|
|
/* Use mpz_kronecker_ui() to calculate an estimate for the quadratic |
/* Use mpz_kronecker_ui() to calculate an estimate for the quadratic |
class number h(d), for a given negative fundamental discriminant, using |
class number h(d), for a given negative fundamental discriminant, using |
Dirichlet's analytic formula. */ |
Dirichlet's analytic formula. |
|
|
/* |
Copyright 1999, 2000, 2001 Free Software Foundation, Inc. |
Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
|
|
|
This file is part of the GNU MP Library. |
This file is part of the GNU MP Library. |
|
|
Line 43 Place - Suite 330, Boston, MA 02111-1307, USA. */ |
|
Line 42 Place - Suite 330, Boston, MA 02111-1307, USA. */ |
|
#include <stdio.h> |
#include <stdio.h> |
|
|
#include "gmp.h" |
#include "gmp.h" |
|
|
|
#ifndef M_PI |
|
#define M_PI 3.14159265358979323846 |
|
#endif |
|
|
|
|
/* A simple but slow primality test. */ |
/* A simple but slow primality test. */ |