00001 /* $Id: fors_double.h,v 1.4 2010/09/14 07:49:30 cizzo Exp $ 00002 * 00003 * This file is part of the FORS Library 00004 * Copyright (C) 2002-2010 European Southern Observatory 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 /* 00022 * $Author: cizzo $ 00023 * $Date: 2010/09/14 07:49:30 $ 00024 * $Revision: 1.4 $ 00025 * $Name: fors-4_8_6 $ 00026 */ 00027 00028 #ifndef FORS_DOUBLE_H 00029 #define FORS_DOUBLE_H 00030 00031 #undef LIST_DEFINE 00032 #undef LIST_ELEM 00033 #define LIST_ELEM double 00034 #include <list.h> 00035 00036 double * 00037 double_duplicate(const double *d); 00038 00039 void 00040 double_delete(double **d); 00041 00042 double 00043 double_eval(const double *d, void *data); 00044 00045 double 00046 double_divide(double x, double dx, 00047 double y, double dy, 00048 double *error); 00049 00050 double 00051 double_subtract(double x, double dx, 00052 double y, double dy, 00053 double *error); 00054 00055 double 00056 double_atan2(double y, double dy, 00057 double x, double dx, 00058 double *error); 00059 00060 #endif