FORS Pipeline Reference Manual  4.12.5
fors_double.h
1 /* $Id: fors_double.h,v 1.4 2010-09-14 07:49:30 cizzo Exp $
2  *
3  * This file is part of the FORS Library
4  * Copyright (C) 2002-2010 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /*
22  * $Author: cizzo $
23  * $Date: 2010-09-14 07:49:30 $
24  * $Revision: 1.4 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef FORS_DOUBLE_H
29 #define FORS_DOUBLE_H
30 
31 #undef LIST_DEFINE
32 #undef LIST_ELEM
33 #define LIST_ELEM double
34 #include <list.h>
35 
36 double *
37 double_duplicate(const double *d);
38 
39 void
40 double_delete(double **d);
41 
42 double
43 double_eval(const double *d, void *data);
44 
45 double
46 double_divide(double x, double dx,
47  double y, double dy,
48  double *error);
49 
50 double
51 double_subtract(double x, double dx,
52  double y, double dy,
53  double *error);
54 
55 double
56 double_atan2(double y, double dy,
57  double x, double dx,
58  double *error);
59 
60 #endif