Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/rings/bernmm/README.txt
4108 views
1
2
bernmm: an implementation of the algorithm described in "A multimodular
3
algorithm for computing Bernoulli numbers", by David Harvey, 2008.
4
5
version 1.1
6
7
Copyright (C) 2008, 2009, David Harvey
8
9
All rights reserved.
10
11
Redistribution and use in source and binary forms, with or without
12
modification, are permitted provided that the following conditions are met:
13
14
1. Redistributions of source code must retain the above copyright notice, this
15
list of conditions and the following disclaimer.
16
17
2. Redistributions in binary form must reproduce the above copyright notice,
18
this list of conditions and the following disclaimer in the documentation
19
and/or other materials provided with the distribution.
20
21
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
22
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE
25
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32
===============================================================================
33
34
To build bernmm, you need to edit the makefile to point to your GMP and NTL
35
install directories, and then just do "make". This will create an executable
36
"bernmm-test". Run it with no arguments to see the available options.
37
38
In the makefile there is also a THREAD_STACK_SIZE option; the default is
39
4096 KB. If this option is not set, the system default thread stack size will
40
be used. This proved to be a problem on OS X, where GMP's mpz_invert routine
41
smashed the default 512 KB stack. For more info see
42
http://sagetrac.org/sage_trac/ticket/6304
43
http://gmplib.org/list-archives/gmp-devel/2009-August/000929.html
44
45
===============================================================================
46
47