summaryrefslogtreecommitdiff
path: root/tests/tcos.c
Commit message (Collapse)AuthorAgeFilesLines
* New test framework, merged from test branch.Philippe Theveny2014-01-201-6/+13
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1416 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* changed GMP_RND? to MPFR_RND?Andreas Enge2012-07-231-5/+5
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1246 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* replaced MPC_RE by mpc_realref and MPC_IM by mpc_imagref everywhereAndreas Enge2011-11-041-4/+4
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1112 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* license change:Andreas 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+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@1027 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* done two "code clean-up" items during a Nancy-Paris train trip...Paul Zimmermann2011-02-091-9/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@912 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* finished change of copyright line into "Copyright (C) INRIA, year1, year2, ..."Paul Zimmermann2011-01-251-1/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@891 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* mpc-impl.h and test files: replaced macro OUT by MPC_OUTAndreas Enge2011-01-131-4/+4
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@867 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* [tcos.c] back to default exponent rangePaul Zimmermann2010-06-281-2/+0
| | | | | | | [cos.dat] changed one test for default exponent range git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@797 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* partial fix for problems with huge exponents reported by Chris SaundersPaul Zimmermann2010-06-281-0/+2
| | | | | | | | | (http://lists.gforge.inria.fr/pipermail/mpc-discuss/2010-June/000750.html) More work is needed for tan (detect when Im(result) is very near -1 or 1) and tanh. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@795 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* revert to UNIX format (r457 changed every file to DOS format).Philippe Theveny2009-03-171-74/+74
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@459 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Modify #include chain so as to support DLL creation on CygwinPhilippe Theveny2009-03-171-75/+74
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@457 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* src/cos.c: complete the changes done in revision 380: the rounding mode in ↵Philippe Theveny2009-01-051-1/+39
| | | | | | | | | mpfr_can_round must be a directed one when the 'prec+(rnd==GMP_RNDN)' trick is used. tests/tcos.c: add a test with values that revealed this bug. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@407 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* NEWS, doc/mpc.texi: notice change in exp, sin, cos, and tan function prototypes.Philippe Theveny2008-12-031-1/+1
| | | | | | | | src/cos.c, src/sin.c, src/tan.c: return now inexact value. tests/tcos.c, tests/tsin.c, tests/ttan.c: change from V_CC to CC func_type. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@380 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* - added data files for norm, div, div_fr, fr_div, mul_frAndreas Enge2008-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+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@299 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_ccc.c, tests/tgeneric_ccs.c, tests/tgeneric_ccu.c, ↵Philippe Theveny2008-10-171-12/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@258 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* added test data file for cosAndreas Enge2008-10-041-415/+3
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@240 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* tests/tgeneric_cc.c: random tests for complex functions of one complex ↵Philippe Theveny2008-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+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@182 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* updated some tests for new third parameter of tgenericAndreas Enge2008-09-161-1/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@173 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* peed up some lengthy tests.Philippe Theveny2008-09-161-1/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@172 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* update some files in preparation of the 0.5 releaseAndreas Enge2008-09-161-1/+1
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@171 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add void in empty prototype (remove warnings with gcc option ↵Philippe Theveny2008-07-311-5/+5
| | | | | | '-Wold-style-definition'. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@166 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Use the new mpc_urandom function in the test suite so that the tests are ↵Philippe Theveny2008-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+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@159 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add random seed setting (with environmnent variable GMP_CHECK_RANDOMIZE) forPhilippe Theveny2008-05-301-0/+6
| | | | | | | reproducible tests. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@147 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Fix wrong sign.Philippe Theveny2008-05-201-18/+19
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@134 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Improve test suite (take into account the sign of zero).Philippe Theveny2008-05-201-9/+10
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@131 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Fix incompatibility with C99 standard.Philippe Theveny2008-05-191-5/+4
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@128 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add more tests and fix some bugs for trigonometric functions.Philippe Theveny2008-05-061-46/+185
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@126 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Add special values processing in mpc_cos as in the C99 standardPhilippe Theveny2008-04-221-1/+237
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@118 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* Replace rounding tests by the new tgeneric functions.Philippe Theveny2008-04-091-31/+5
| | | | git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@87 211d60ee-9f03-0410-a15a-8952a2c7a4e4
* File reorganisation into three new directories: src, tests and doc.Philippe Theveny2008-04-091-0/+101
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@82 211d60ee-9f03-0410-a15a-8952a2c7a4e4