Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:00

0001 /* specfunc/gsl_sf_result.h
0002  * 
0003  * Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman
0004  * 
0005  * This program is free software; you can redistribute it and/or modify
0006  * it under the terms of the GNU General Public License as published by
0007  * the Free Software Foundation; either version 3 of the License, or (at
0008  * your option) any later version.
0009  * 
0010  * This program is distributed in the hope that it will be useful, but
0011  * WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  * General Public License for more details.
0014  * 
0015  * You should have received a copy of the GNU General Public License
0016  * along with this program; if not, write to the Free Software
0017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0018  */
0019 
0020 /* Author:  G. Jungman */
0021 
0022 #ifndef __GSL_SF_RESULT_H__
0023 #define __GSL_SF_RESULT_H__
0024 
0025 #undef __BEGIN_DECLS
0026 #undef __END_DECLS
0027 #ifdef __cplusplus
0028 # define __BEGIN_DECLS extern "C" {
0029 # define __END_DECLS }
0030 #else
0031 # define __BEGIN_DECLS /* empty */
0032 # define __END_DECLS /* empty */
0033 #endif
0034 
0035 __BEGIN_DECLS
0036 
0037 struct gsl_sf_result_struct {
0038   double val;
0039   double err;
0040 };
0041 typedef struct gsl_sf_result_struct gsl_sf_result;
0042 
0043 #define GSL_SF_RESULT_SET(r,v,e) do { (r)->val=(v); (r)->err=(e); } while(0)
0044 
0045 
0046 struct gsl_sf_result_e10_struct {
0047   double val;
0048   double err;
0049   int    e10;
0050 };
0051 typedef struct gsl_sf_result_e10_struct gsl_sf_result_e10;
0052 
0053 
0054 int gsl_sf_result_smash_e(const gsl_sf_result_e10 * re, gsl_sf_result * r);
0055 
0056 
0057 __END_DECLS
0058 
0059 #endif /* __GSL_SF_RESULT_H__ */