summaryrefslogtreecommitdiff
path: root/src/zeta.c
Commit message (Collapse)AuthorAgeFilesLines
* In various functions, use mpfr_equal_p() instead of mpfr_cmp() == 0.vlefevre2021-04-231-2/+2
| | | | | | | | | Note: In these cases, the test should be false if one of the arguments is NaN (it is not always clear whether NaN is impossible, but just in case, mpfr_equal_p is safer, in particular if the code around changes; and this is more readable too). git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14493 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2021 withvlefevre2021-01-031-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2020)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2020 from the example in the doc/README.dev file. git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14229 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Minor correction of a comment.vlefevre2020-12-131-2/+2
| | | | git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14180 280ebfd0-de03-0410-8827-d642c229c3f4
* [src,tests] Consistency: in prototypes, changedvlefevre2020-08-211-6/+6
| | | | | | | | | const mpfr_t to mpfr_srcptr mpfr_t to mpfr_ptr (except for mpfr_t *), as this is equivalent (the array is converted to a pointer) and the mpfr_srcptr/mpfr_ptr form is the usual one. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@14103 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2020 withvlefevre2020-01-081-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2019)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2019 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13652 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] fixed out-of-bound read reported by Thomas Bailleuxzimmerma2019-04-301-4/+4
| | | | | | Note: This bug was introduced in r12066. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13485 280ebfd0-de03-0410-8827-d642c229c3f4
* Updated the www.gnu.org URL's (http → https) on all the files with:vlefevre2019-01-071-1/+1
| | | | | | | perl -pi -e 's,http://www.gnu.org/,https://www.gnu.org/,g' **/*(.) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13372 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2019 withvlefevre2019-01-011-1/+1
| | | | | | | | perl -pi -e 's/ (\d{4}-)?(2018)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh. Removed 2018 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13359 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced mpfr_mul_2exp & mpfr_div_2exp by mpfr_mul_2ui & mpfr_div_2ui,vlefevre2018-04-171-2/+2
| | | | | | | | respectively (for the tests, except in reuse.c and in taway.c). Note: As documented, mpfr_mul_2exp & mpfr_div_2exp are only kept for compatibility with MPF; mpfr_mul_2ui & mpfr_div_2ui are preferred. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12607 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2018 withvlefevre2018-01-031-1/+1
| | | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2017)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the ck-mparam and timings-mpfr.c files and the mbench directory under "tools" (not distributed with MPFR). Removed 2017 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12067 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] added comments and FIXMEzimmerma2018-01-031-1/+18
| | | | | | Note (2019-04-30): a bug has also been introduced (fixed in r13485). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@12066 280ebfd0-de03-0410-8827-d642c229c3f4
* get rid of DEBUG macro (but keep corresponding commands in comment to helpzimmerma2017-12-111-10/+4
| | | | | | | understanding of the code and debugging) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11955 280ebfd0-de03-0410-8827-d642c229c3f4
* Cleanup: In src/mpfr-gmp.h, exchangedvlefevre2017-11-101-2/+2
| | | | | | | | | | mpfr_allocate_func and *__gmp_allocate_func mpfr_reallocate_func and *__gmp_reallocate_func mpfr_free_func and *__gmp_free_func and in the code, replaced *__gmp_{allocate,reallocate,free}_func by mpfr_{allocate,reallocate,free}_func; updated TODO file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11820 280ebfd0-de03-0410-8827-d642c229c3f4
* get rid of computations with 'double' in mpfr_zetazimmerma2017-05-191-25/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11510 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] mpfr_reflection_overflow: reverted r11322 as the roundingvlefevre2017-02-171-3/+3
| | | | | | direction was correct; it was a comment that was incorrect, now fixed. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11323 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] mpfr_reflection_overflow: fixed a rounding direction.vlefevre2017-02-171-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11322 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Improvements of mpfr_reflection_overflow:vlefevre2017-02-171-48/+37
| | | | | | | | | * Moved identical parts of the code at the beginning of if/else blocks as a single part before the "if". * When the rounding mode doesn't matter (exact result), use MPFR_RNDN. * Updated comments (making them more consistent at the same time). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11321 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] added more comments for the overflow casezimmerma2017-02-161-9/+18
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11320 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] mpfr_reflection_overflow: added comments and FIXME's;vlefevre2017-02-131-7/+17
| | | | | | fixed obvious typos in a comment and the code. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11315 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] mpfr_reflection_overflow: typo in a comment.vlefevre2017-02-131-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11314 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Untabified.vlefevre2017-02-131-42/+42
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11313 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Added an assertion and a comment.vlefevre2017-02-131-2/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11312 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] improved overflow detectionzimmerma2017-02-131-13/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11308 280ebfd0-de03-0410-8827-d642c229c3f4
* fix for mpfr_zeta overflow on 32-bit computerszimmerma2017-02-121-7/+123
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11306 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Updated a FIXME.vlefevre2017-02-091-2/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11298 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] fixed long-standing failure in tzetazimmerma2017-02-091-1/+51
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11296 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2017 withvlefevre2017-01-011-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2016)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the tools/mbench directory (not distributed with MPFR). Removed 2016 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11117 280ebfd0-de03-0410-8827-d642c229c3f4
* Some improvements / corrections in the description / proof of thevlefevre2016-09-151-4/+3
| | | | | | | | | | | | | | algorithm for the Riemann Zeta function. * doc/algorithms.tex, section on the Riemann Zeta function: the case s < 1/2 (reflection formula) is now in a new section, which needs to be completed (with the detailed algorithm and error analysis); case "s close to 0" added and now properly proved. * src/zeta.c: update of the comment for s close to 0 (the brief explanations were wrong for precision 1, and this was apparently not checked when we allowed this precision!), adding a reference to algorithms.tex for details. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10875 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Added a FIXME: bug in the error computation due to thevlefevre2016-09-131-0/+5
| | | | | | | | use of the native double C type, which can yield an overflow. [tests/tzeta.c] Added a corresponding test case, which gives an assertion failure. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10865 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Make explicit that we need to use lngamma.vlefevre2016-09-131-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10861 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Updated comments on overflows / underflows.vlefevre2016-09-131-15/+23
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10860 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] About internal underflows / cancellation:vlefevre2016-09-131-4/+15
| | | | | | | * Added comments to FIXME's. * Detect a potential integer overflow with MPFR_ASSERTN. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10859 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Updated FIXME: also suggest a scaling.vlefevre2016-09-071-1/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10810 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Updated FIXME with a suggestion.vlefevre2016-09-071-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10806 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Added a FIXME: An overflow in gamma(s1) does not implyvlefevre2016-09-071-0/+2
| | | | | | | that Zeta(s) will overflow. [tests/tzeta.c] Added a test that triggers this bug with a 32-bit ABI. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10805 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] Updated FIXME.vlefevre2016-09-061-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10797 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/zeta.c] added FIXMEzimmerma2016-09-061-0/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10796 280ebfd0-de03-0410-8827-d642c229c3f4
* Replacedvlefevre2016-02-041-1/+1
| | | | | | | | Contributed by the AriC and Caramel projects by Contributed by the AriC and Caramba projects git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9941 280ebfd0-de03-0410-8827-d642c229c3f4
* added READMEzimmerma2016-01-201-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9856 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug for zeta(s) with s near an even negative integerzimmerma2016-01-201-8/+23
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9852 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2016 withvlefevre2016-01-011-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2015)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the m4 and tools/mbench directories were not modified). Removed 2015 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9779 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2015 withvlefevre2015-02-131-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2014)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh, reverting the tools/mbench directory (not distributed with MPFR). Removed 2014 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9278 280ebfd0-de03-0410-8827-d642c229c3f4
* [src/*.c] Replaced mpfr_set_divby0 by the faster MPFR_SET_DIVBY0,vlefevre2014-01-211-1/+1
| | | | | | | | | | | and so on (except for src/exceptions.c). [tools/mpfrlint] Update for flags related functions: check that the macros are used in src (except for exceptions.c and mpfr.h) instead of the functions. [src/mpfr-impl.h] Removed some useless parentheses in comments, for mpfrlint. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8833 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2014 withvlefevre2014-01-031-1/+1
| | | | | | | | | perl -pi -e 's/ (\d{4}-)?(2013)(?= Free Software)/ " ".($1||"$2-").($2+1)/e' **/*(^/) under zsh (the tools/mbench directory was not modified). Removed 2013 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8723 280ebfd0-de03-0410-8827-d642c229c3f4
* Applied patch 3 by Ondřej Bílka with some manual corrections,vlefevre2013-07-221-1/+1
| | | | | | | fixing typos: https://sympa.inria.fr/sympa/arc/mpfr/2013-07/msg00016.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8621 280ebfd0-de03-0410-8827-d642c229c3f4
* Applied patch 2 by Ondřej Bílka, fixing capitalization:vlefevre2013-07-221-1/+1
| | | | | | https://sympa.inria.fr/sympa/arc/mpfr/2013-07/msg00015.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8620 280ebfd0-de03-0410-8827-d642c229c3f4
* Use copyright year ranges, followingvlefevre2013-05-301-1/+1
| | | | | | http://www.gnu.org/prep/maintain/maintain.html#Copyright-Notices git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8540 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2013 withvlefevre2013-01-031-1/+1
| | | | | | | | | perl -pi -e 's/2012 Free Software/2012, 2013 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 directory (the tools/mbench directory was not modified). Removed 2012 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8447 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed Arenaire to AriC with:vlefevre2012-01-101-1/+1
| | | | | | | perl -pi -e 's/Contributed by the Arenaire/Contributed by the AriC/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7993 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2012 withvlefevre2012-01-101-1/+1
| | | | | | | | | perl -pi -e 's/2011 Free Software/2011, 2012 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file (the m4 and tools/mbench directories were not modified). Removed 2011 from the example in the doc/README.dev file. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7986 280ebfd0-de03-0410-8827-d642c229c3f4