1 /* tcosh.c -- Test mpfi_cosh.
2 
3 Copyright 2009, 2010,
4                      Spaces project, Inria Lorraine
5                      and Salsa project, INRIA Rocquencourt,
6                      and Arenaire project, Inria Rhone-Alpes, France
7                      and Lab. ANO, USTL (Univ. of Lille),  France
8 
9 
10 This file is part of the MPFI Library.
11 
12 The MPFI Library is free software; you can redistribute it and/or modify
13 it under the terms of the GNU Lesser General Public License as published by
14 the Free Software Foundation; either version 2.1 of the License, or (at your
15 option) any later version.
16 
17 The MPFI Library is distributed in the hope that it will be useful, but
18 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
20 License for more details.
21 
22 You should have received a copy of the GNU Lesser General Public License
23 along with the MPFI Library; see the file COPYING.LIB.  If not, write to
24 the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
25 MA 02110-1301, USA. */
26 
27 #include "mpfi-tests.h"
28 
29 int
main(int argc,char ** argv)30 main (int argc, char **argv)
31 {
32   struct mpfi_function_t i_cosh;
33 
34   mpfi_fun_init_II (&i_cosh, mpfi_cosh, mpfr_cosh);
35   test_start ();
36 
37   check_data (&i_cosh, "cosh.dat");
38   check_random (&i_cosh, 2, 1000, 10);
39 
40   test_end ();
41   mpfi_fun_clear (&i_cosh);
42 
43   return 0;
44 }
45