summaryrefslogtreecommitdiff
path: root/tests/tsqrt.c
Commit message (Collapse)AuthorAgeFilesLines
* [src/sqrt.c] fixed a bug, and simplified code (sb=0 implies rb=0)zimmerma2017-02-081-0/+36
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11295 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
* [src/sqrt.c] fixed bug in mpfr_sqrt2zimmerma2016-09-081-0/+20
| | | | | | | [tests/tsqrt.c] added non-regression test git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10824 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] Fixed output bug in a test.vlefevre2016-07-311-5/+5
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10699 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced various instances of mpfr_print_binary + newline (sometimesvlefevre2016-04-071-2/+2
| | | | | | missing) by mpfr_dump. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10252 280ebfd0-de03-0410-8827-d642c229c3f4
* changed test_generic() calls to start from MPFR_PREC_MIN instead of 2;zimmerma2016-02-051-1/+1
| | | | | | | this revealed a special-case code in mpfr_exp which didn't work for prec=1 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9955 280ebfd0-de03-0410-8827-d642c229c3f4
* MPFR_PREC_MIN is now 1, in accordance with the next revision of IEEE-754zimmerma2016-02-041-1/+1
| | | | | | | fixed tests to start at MPFR_PREC_MIN instead of hard-coded value of 2 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9952 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
* [tests/tsqrt.c] Improved bug20160120.vlefevre2016-01-211-4/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9861 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] In bug20160120, check the validity of the result withvlefevre2016-01-211-0/+2
| | | | | | mpfr_check first, because the mpfr_sqrt was generating invalid data. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9859 280ebfd0-de03-0410-8827-d642c229c3f4
* fixed bug in mpfr_sqrt reported by Fredrik Johanssonzimmerma2016-01-201-1/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9858 280ebfd0-de03-0410-8827-d642c229c3f4
* added test case for bug reported by Fredrik Johanssonzimmerma2016-01-201-0/+19
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9857 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
* 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
* 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
* Added configure option --enable-assert=none to avoid checking anyvlefevre2012-06-261-2/+4
| | | | | | assertion (this is based on a patch by Patrick). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8271 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests] Removed #include of headers already included via "mpfr-test.h"vlefevre2012-02-241-3/+0
| | | | | | | (<limits.h>, <stdio.h>, <stdlib.h>). Note: this change doesn't apply to tvalist.c, which is a special test that doesn't use "mpfr-test.h". git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8054 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
* Fixed printf's calls: support the case where mpfr_prec_t is not a longvlefevre2011-05-121-1/+1
| | | | | | | (or unsigned long). [merged changeset r7643 from the exp-int branch] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7686 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2011 withvlefevre2011-01-171-1/+1
| | | | | | | | perl -pi -e 's/2010 Free Software/2010, 2011 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the m4 and tools/mbench directories. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7389 280ebfd0-de03-0410-8827-d642c229c3f4
* [tsqrt.c] improved comment, and added test sqrt(+0) == +0zimmerma2010-08-301-1/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7112 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] Renamed check_nan() to check_singular().vlefevre2010-08-291-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7111 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] Check that sqrt(-0) has a negative sign.vlefevre2010-08-291-0/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7110 280ebfd0-de03-0410-8827-d642c229c3f4
* Replacedvlefevre2010-07-301-1/+1
| | | | | | | | Contributed by the Arenaire and Cacao projects by Contributed by the Arenaire and Caramel projects git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7026 280ebfd0-de03-0410-8827-d642c229c3f4
* Changed mp_prec_t into mpfr_prec_t.vlefevre2010-04-301-6/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6767 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] Add the test -1 <= x/sqrt(x^2) <= 1, which correspondsvlefevre2010-03-111-8/+15
| | | | | | | | to -1 <= x/sqrt(x^2+y^2) <= 1 with y = 0. I don't think the test with random y is still necessary, though, since even a bad sqrt accuracy would not be detected. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6718 280ebfd0-de03-0410-8827-d642c229c3f4
* [tests/tsqrt.c] Added a comment about the x/sqrt(x^2+y^2) test.vlefevre2010-03-101-0/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6717 280ebfd0-de03-0410-8827-d642c229c3f4
* [tsqrt.c] fixed bug reported by Sam Rawlinszimmerma2010-03-101-1/+1
| | | | | | | | (https://sympa.inria.fr/sympa/arc/mpfr/2010-03/msg00007.html) Note: this "bug" had no noticeable consequences; this can just be seen as an incomplete test. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6716 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2010 withvlefevre2010-01-201-1/+1
| | | | | | | perl -pi -e 's/2009 Free Software/2009, 2010 Free Software/' **/*(^/) under zsh, reverting the ChangeLog file and the mbench directory. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6684 280ebfd0-de03-0410-8827-d642c229c3f4
* Replaced GMP_LIMB_BITS by GMP_NUMB_BITS to use only one of these macros.vlefevre2010-01-081-16/+16
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6646 280ebfd0-de03-0410-8827-d642c229c3f4
* BITS_PER_MP_LIMB -> GMP_LIMB_BITSzimmerma2010-01-081-16/+16
| | | | | | | | got rid of BYTES_PER_MP_LIMB in configure.in (no longer defined by GMP) Note[VL] (mpfr-impl.h): a mpn_sqr_n() macro is defined to use mpn_mul if it is not already defined (in gmp-impl.h from GMP 4.x). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6644 280ebfd0-de03-0410-8827-d642c229c3f4
* towards -> toward (consistency).vlefevre2009-09-021-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6407 280ebfd0-de03-0410-8827-d642c229c3f4
* Renamed COPYING.LIB as COPYING.LESSER (GNU Coding Standards, #7.3)vlefevre2009-07-301-1/+1
| | | | | | and updated all the references (except in ChangeLog). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6351 280ebfd0-de03-0410-8827-d642c229c3f4
* mp_rnd_t -> mpfr_rnd_tvlefevre2009-06-261-7/+7
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6295 280ebfd0-de03-0410-8827-d642c229c3f4
* Suppressed MPFR_CLEAR_FLAGS (no longer did anything).vlefevre2009-06-261-3/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6294 280ebfd0-de03-0410-8827-d642c229c3f4
* GMP_RNDX -> MPFR_RNDXzimmerma2009-03-031-154/+154
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6053 280ebfd0-de03-0410-8827-d642c229c3f4
* Update to LGPL v3+, as decided by the main MPFR developers.vlefevre2009-03-031-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6050 280ebfd0-de03-0410-8827-d642c229c3f4
* Add tests with round away mode.thevenyp2009-02-261-0/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6032 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2009 withvlefevre2009-01-151-1/+1
| | | | | | | perl -pi -e 's/2008 Free Software/2008, 2009 Free Software/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5814 280ebfd0-de03-0410-8827-d642c229c3f4
* Fixed remaining printf format strings.vlefevre2009-01-141-2/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5813 280ebfd0-de03-0410-8827-d642c229c3f4
* This is now GNU MPFR!vlefevre2008-10-271-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5654 280ebfd0-de03-0410-8827-d642c229c3f4
* Remove obsolete mpfr_random function and replace it by mpfr_urandomb in tests.thevenyp2008-09-181-4/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5640 280ebfd0-de03-0410-8827-d642c229c3f4
* Added data_check support to mpfr_sqr.vlefevre2008-08-211-0/+1
| | | | | | Added bad_cases support to mpfr_sqr and mpfr_sqrt. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5584 280ebfd0-de03-0410-8827-d642c229c3f4
* Clean-up and various changes to be able to build MPFR with g++.vlefevre2008-06-091-1/+1
| | | | | | | | | | | | | But the following 3 tests currently fail with g++ 4.3.1: FAIL: tprintf FAIL: tsprintf FAIL: tfprintf This is an "Illegal instruction" error, so probably a bug in g++. [Edit: acinclude.m4 now uses gl_SIZE_MAX, typically from size_max.m4, but which is not installed on all machines; this will be added to the MPFR repository in changesets 5680 and 5683.] git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5385 280ebfd0-de03-0410-8827-d642c229c3f4
* Copyright notice update: added 2008 withvlefevre2008-01-011-1/+1
| | | | | | | | perl -pi -e 's/2007 Free Software/2007, 2008 Free Software/' **/*(^/) under zsh. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5151 280ebfd0-de03-0410-8827-d642c229c3f4
* tsqrt.c: added generic tests (shows that the inexact flag isn't set,vlefevre2007-09-181-0/+5
| | | | | | | which is a bug reported by Guillaume Revy). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4847 280ebfd0-de03-0410-8827-d642c229c3f4
* No longer use MPFR_CHECK_ALL in tests. In '-dev' versions, assumevlefevre2007-07-251-2/+1
| | | | | | | | | that the data files exist and return an error whenever a file cannot be opened. In the other versions, return silently if the file cannot be opened. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4701 280ebfd0-de03-0410-8827-d642c229c3f4