summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests/tgeneric_ccc.c: take tie case into account when avoiding double ↵thevenyp2008-09-261-10/+9
| | | | | | rounding error. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@211 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul.c: remove unused variable.thevenyp2008-09-251-1/+0
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@204 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tadd_fr.c: Use correct type and better variable names.thevenyp2008-09-251-13/+14
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@203 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Update changes dates and authors in copyright line.thevenyp2008-09-248-8/+8
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@202 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tadd_fr.c: check binary value (moved from test/test.c)thevenyp2008-09-242-81/+36
| | | | | | | tests/test.c: removed tests now done otherwhere. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@201 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul_ui.c: fixed another typozimmerma2008-09-241-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@200 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul_ui.c: Fix typo.thevenyp2008-09-241-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@199 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tgeneric_fc.c: random tests for real functions of one complex variable and ↵thevenyp2008-09-2411-5/+1102
| | | | | | | | | | | | | | | | | tests for parameter reuse. tnorm.c tabs.c: use tgeneric_fc.c tgeneric_ccs.c:random tests for complex functions of two variables : the first one of type mpfr_t and the second one of type (signed) long int; and tests for parameter reuse. tmul_si.c: use tgeneric_ccs.c tgeneric_cuc.c:random tests for complex functions of two variables : the first one of type unsigned long and the second one of type mpc_t; and tests for parameter reuse. tui_div.c tui_sub.c: use tgeneric_cuc.c tgeneric_cuuc.c: random tests for complex functions of three variables : the first and second one of type unsigned long and the third one of type mpc_t; and tests for parameter reuse. tui_ui_sub.c: use tgeneric_cuuc.c Makefile.am: add tgeneric_fc.c, tgeneric_ccs.c, tgeneric_cuc.c, and tgeneric_cuuc.c to EXTRA_DIST, and add new tests files. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@198 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/fr_sub.c: Fix bug revealed by tests (wrong sign in imaginary part).thevenyp2008-09-244-53/+337
| | | | | | | | | tests/tgeneric_cfc.c: random tests for complex functions of two variables : the first one of type mpfr_t and the second one of type mpc_t; and tests for parameter reuse. tests/Makefile.am: add tgeneric_cfc.c to EXTRA_DIST and add new tests files. tests/tfr_div.c tests/tfr_sub.c: use tgeneric_cfc.c git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@196 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_ccf.c: Fix typo, clear variable.thevenyp2008-09-241-1/+2
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@195 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tgeneric_ccf.c: random tests for complex functions of two variables : the ↵thevenyp2008-09-246-4/+420
| | | | | | | | | | first one of type mpc_t and the second one of type mpfr_t; and tests for parameter reuse. Makefile.am: add tgeneric_ccf.c to EXTRA_DIST and add new tests files. tsub_fr.c tmul_fr.c tdiv_fr.c tadd_fr.c: use tgeneric_ccf.c git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@192 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tmul.c: Speed up test while increasing exponent range.thevenyp2008-09-242-11/+8
| | | | | | | tests/tdiv.c: Speed up test. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@191 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tlog.c: Put tests exp(log(z)) == z and log(exp(z)) == z into new ↵thevenyp2008-09-241-28/+31
| | | | | | function, use test_default_random instead of obsolete mpc_random, and speed up test. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@190 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_ccu.c: random tests for complex functions of two variables : ↵thevenyp2008-09-238-3/+506
| | | | | | | | | | the first one of type mpc_t and the second one of type unsigned long; and tests for parameter reuse. tests/Makefile.am: add tgeneric_ccu.c to EXTRA_DIST and add new tests files. tadd_ui.c tsub_ui.c tmul_ui.c tdiv_ui.c tmul_2exp.c tdiv_2exp.c: use tgeneric_ccu.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@189 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_ccc.c: random tests for complex functions of two complex ↵thevenyp2008-09-236-240/+290
| | | | | | | | | | | variable and tests for parameter reuse. tests/Makefile.am: add tgeneric_ccc.c to EXTRA_DIST tests/tdiv.c tests/tadd.c tests/tsub.c tests/tmul.c: use tgeneric_ccc.c git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@188 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tfr_div.c: rename function 'check_random', avoiding ambiguity with ↵thevenyp2008-09-231-2/+2
| | | | | | libc function. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@187 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/div.c: Fix bug (an exact case was not correctly handle).thevenyp2008-09-231-0/+21
| | | | | | | test/tdiv.c: Add a test for this bug. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@186 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tdiv.c: complete tests with regular value and move them in a separated ↵thevenyp2008-09-231-12/+43
| | | | | | function. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@185 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tdiv.c: Changes in mpc_div_ref thevenyp2008-09-231-17/+21
| | | | | | | | | - fix bug: use rnd_im instead of GMP_RNDN - fix one comment - cosmetic changes git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@184 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_cc.c: random tests for complex functions of one complex ↵thevenyp2008-09-1914-41/+269
| | | | | | | | | | | variable and tests for parameter reuse. tests/Makefile.am: add tgeneric.cc plus some tests files tconj, tneg tests/tlog.c tests/ttan.c tests/tcos.c tests/tsin.c tests/tsqrt.c tests/tconj.c tests/ttanh.c tests/tcosh.c tests/texp.c tests/tsinh.c tests/tsqr.c tests/tneg.c: use tgeneric_cc.c git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@182 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Speed up tests.thevenyp2008-09-168-10/+10
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@175 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* updated some tests for new third parameter of tgenericenge2008-09-166-6/+6
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@173 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* peed up some lengthy tests.thevenyp2008-09-167-9/+9
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@172 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* update some files in preparation of the 0.5 releaseenge2008-09-161-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@171 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* corrected tiny error in tfr_div.cenge2008-09-151-1/+1
| | | | | | | erased things from TODO that are done git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@169 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/fr_div.c: Add new function (preliminary version, adapted from mpc_div, ↵thevenyp2008-09-122-2/+90
| | | | | | | | | | need a better handling for very big/very small exponents). src/mpc.h src/Makefile.am doc/mpc.texi: Add mpc_fr_div. tests/Makefile.am tests/tfr_div.c: Associated tests (need tests for special values). git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@167 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add void in empty prototype (remove warnings with gcc option ↵thevenyp2008-07-3116-49/+49
| | | | | | '-Wold-style-definition'. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@166 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/sqrt.c: Fixed inversion of rouding direction when Im(op) is negative.thevenyp2008-07-151-0/+49
| | | | | | | | tests/tsqrt.c: add tests for the bugs fixed in this revision. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@160 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Use the new mpc_urandom function in the test suite so that the tests are ↵thevenyp2008-07-1017-71/+104
| | | | | | reproducible and sensible to the random seed set with the environment variable GMP_CHECK_RANDOMIZE (revision r153 disabled this behavior). git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@159 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/sqrt.c: Returns value according to ISO C99 specifications for the csqrt ↵thevenyp2008-07-101-1/+649
| | | | | | | | | | function. tests/tsqrt.c: Add tests for special values. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@156 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Remove use of mpfr global variables mpfr_rands and mpfr_rands_initialized.thevenyp2008-06-251-13/+11
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@153 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/out_str.c, src/inp_str.c: change output to "A +I*B" format with a spacethevenyp2008-06-061-4/+10
| | | | | | | | separating the real and the imaginary part. tests/test.c: Fix mpc_out_str test. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@151 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add random seed setting (with environmnent variable GMP_CHECK_RANDOMIZE) forthevenyp2008-05-3017-3/+198
| | | | | | | reproducible tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@147 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* New parameters for the precision limits of testing variables.thevenyp2008-05-261-8/+23
| | | | | | | Use of mpc_random2 as random function. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@142 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* test.c: Remove tests on arithmetic operations with two mpc_t.thevenyp2008-05-262-24/+33
| | | | | | | tadd.c: Move ternary value tests from test.c. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@141 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Improve test suit.thevenyp2008-05-202-61/+63
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@135 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Fix wrong sign.thevenyp2008-05-201-18/+19
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@134 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add mpc_tanh function.thevenyp2008-05-202-1/+618
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@133 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Cosmetic changes.thevenyp2008-05-202-63/+96
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@132 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Improve test suite (take into account the sign of zero).thevenyp2008-05-202-13/+14
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@131 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add hyperbolic cosine function.thevenyp2008-05-192-1/+651
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@129 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Fix incompatibility with C99 standard.thevenyp2008-05-191-5/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@128 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add hyperbolic sine function with tests.thevenyp2008-05-062-1/+447
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@127 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add more tests and fix some bugs for trigonometric functions.thevenyp2008-05-063-111/+559
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@126 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add mpc_tan function.thevenyp2008-04-252-1/+427
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@122 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add special values processing in mpc_cos as in the C99 standardthevenyp2008-04-221-1/+237
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@118 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Fix values at a (x +/-i*Inf) point.thevenyp2008-04-221-1/+4
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@117 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add special values processing in mpc_sin as in the C99 standardthevenyp2008-04-211-1/+227
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@115 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* avoided spurious error message for tlog in the following case:enge2008-04-111-2/+5
| | | | | | | | | | Possible error in log; difference between z and z2=exp(log(z)): z=0+I*0.10E-1 tmp=-0.10110001E1+I*0.11001001E1 z2=0.10E-12+I*0.10E-1 git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@107 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* added checks for existence of warning flagsenge2008-04-111-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@106 211d60ee-9f03-0410-a15a-8952a2c7a4e4