summaryrefslogtreecommitdiff
path: root/tests/tlog.c
Commit message (Collapse)AuthorAgeFilesLines
* New test framework, merged from test branch.thevenyp2014-01-201-6/+12
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1416 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* license change:enge2011-08-291-13/+12
| | | | | | | | | | | | LGPLv3+ for code FDLv1.3+ for mpc.texi simple disclaimer for supporting files (README, NEWS, INSTALL) tests/memory.c: replaced by version from mpfr-3.0.1 mpfr.texi: small cleanups; added real authors again, while keeping copyright notice with INRIA git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1027 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* finished change of copyright line into "Copyright (C) INRIA, year1, year2, ..."zimmerma2011-01-251-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@891 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tlog.c: removed test that f^(-1) (f (z)) == z; this was apparently theenge2009-10-021-69/+0
| | | | | | | only function with such a test git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@696 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [tlog.c] disabled test for exp(log(z)) = z, since it gives false positiveszimmerma2009-10-011-2/+4
| | | | | | | | [sqr.c] fixed infinite loop with large exponents [tsqr.c] added new test git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@690 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* revert to UNIX format (r457 changed every file to DOS format).thevenyp2009-03-171-105/+105
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@459 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Modify #include chain so as to support DLL creation on Cygwinthevenyp2009-03-171-106/+105
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@457 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [log.c] now mpc_log returns int instead of voidzimmerma2008-12-081-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@390 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* - added data files for norm, div, div_fr, fr_div, mul_frenge2008-11-131-1/+1
| | | | | | | | | - debugged some of the corresponding functions - tests/mpc-tests.h: removal of macros - tests/read_data.c: reorganisation of reused code in functions git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@299 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tlog.c: Start exp(log(z))==z from prec=4 instead of prec=2 because the ↵thevenyp2008-11-131-1/+1
| | | | | | relative error is too large for small precision. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@297 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* random.c: Add new parameter zero_probability to test_default_random in order ↵thevenyp2008-11-071-5/+1
| | | | | | | | | | to provide a probability of zero in one number's part independently to number precision. Change also neg_number_p boolean parameter to negative_probability. mpc-tests.h: Change prototype of test_default_random. tmul.c, tlog.c, tgeneric.c: Change calls to test_default_random. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@282 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_ccc.c, tests/tgeneric_ccs.c, tests/tgeneric_ccu.c, ↵thevenyp2008-10-171-16/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests/tgeneric_cc.c, tests/tgeneric_cfc.c, tests/tgeneric_cuuc.c, tests/tgeneric_fc.c, tests/tgeneric_ccf.c, tests/tgeneric_cuc.c: code moved into test/tgeneric.c. tests/read_data_cc.c: code moved into tests/read_data.c. tests/mpc-tests.h: helper test function are in this new library tests/tgeneric.c: generic are reuse tests for all function prototypes used in MPC. tests/read_data.c: read data in a file. tests/comparisons.c: comparaison function working also with special values tests/random.c: functions become public tests/tsub_ui.c: use new libmpc-tests tests/tconj.c: use new libmpc-tests tests/tmul_ui.c: use new libmpc-tests tests/tmul_2exp.c: use new libmpc-tests tests/texp.c: use new libmpc-tests tests/tsinh.c: use new libmpc-tests tests/tneg.c: use new libmpc-tests tests/tui_div.c: use new libmpc-tests tests/tsub_fr.c: use new libmpc-tests tests/tdiv_2exp.c: use new libmpc-tests tests/tmul_fr.c: use new libmpc-tests tests/tadd_ui.c: use new libmpc-tests tests/tsqrt.c: use new libmpc-tests tests/ttanh.c: use new libmpc-tests tests/tfr_div.c: use new libmpc-tests tests/tnorm.c: use new libmpc-tests tests/tadd_fr.c: use new libmpc-tests tests/tfr_sub.c: use new libmpc-tests tests/tui_ui_sub.c: use new libmpc-tests tests/tmul_si.c: use new libmpc-tests tests/tdiv_ui.c: use new libmpc-tests tests/tlog.c: use new libmpc-tests tests/tdiv.c: use new libmpc-tests tests/ttan.c: use new libmpc-tests tests/tcos.c: use new libmpc-tests tests/tadd.c: use new libmpc-tests tests/tsin.c: use new libmpc-tests tests/tsub.c: use new libmpc-tests tests/tcosh.c: use new libmpc-tests tests/tmul.c: use new libmpc-tests tests/tabs.c: use new libmpc-tests tests/tsqr.c: use new libmpc-tests tests/tdiv_fr.c: use new libmpc-tests tests/tui_sub.c: removed because mpc_ui_sub is a macro. tests/abs.dat: new test file for mpc_abs. tests/Makefile.am: record previous changes. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@258 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [tlog.c,tcosh.c] updated copyright linezimmerma2008-10-031-1/+1
| | | | | | | | [tan.dat] new test file for mpc_tan [ttan.c,Makefile.am] added tan.dat git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@239 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [log.dat] new test file for mpc_logzimmerma2008-10-031-0/+3
| | | | | | | [tlog.c] added test with log.dat git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@232 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Update changes dates and authors in copyright line.thevenyp2008-09-241-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@202 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_cc.c: random tests for complex functions of one complex ↵thevenyp2008-09-191-2/+1
| | | | | | | | | | | 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-161-2/+2
| | | | 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-161-1/+1
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@173 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* peed up some lengthy tests.thevenyp2008-09-161-3/+3
| | | | git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@172 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add void in empty prototype (remove warnings with gcc option ↵thevenyp2008-07-311-1/+1
| | | | | | '-Wold-style-definition'. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@166 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Use the new mpc_urandom function in the test suite so that the tests are ↵thevenyp2008-07-101-1/+1
| | | | | | 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
* Add random seed setting (with environmnent variable GMP_CHECK_RANDOMIZE) forthevenyp2008-05-301-0/+6
| | | | | | | reproducible tests. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@147 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
* eliminated comparisons between signed and unsignedenge2008-04-111-2/+3
| | | | | | | mainly by casting precisions (unsigned) to mp_exp_t (signed) git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@105 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests and documentation for mpc_logenge2008-04-111-2/+65
| | | | | | | small reorganisation of the manual git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@100 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* first try for log, probably still buggyenge2008-04-101-0/+37
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@96 211d60ee-9f03-0410-a15a-8952a2c7a4e4