File indexing completed on 2024-05-12 05:55:11

0001 /* floatconst.h: constants for higher math functions */
0002 /*
0003     Copyright (C) 2007, 2008 Wolf Lammen.
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 2 of the License , or
0008     (at your option) any later version.
0009 
0010     This program is distributed in the hope that it will be useful,
0011     but WITHOUT ANY WARRANTY; without even the implied warranty of
0012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013     GNU 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; see the file COPYING.  If not, write to:
0017 
0018       The Free Software Foundation, Inc.
0019       59 Temple Place, Suite 330
0020       Boston, MA 02111-1307 USA.
0021 
0022 
0023     You may contact the author by:
0024        e-mail:  ookami1 <at> gmx <dot> de
0025        mail:  Wolf Lammen
0026               Oertzweg 45
0027               22307 Hamburg
0028               Germany
0029 
0030 *************************************************************************/
0031 
0032 #ifndef FLOATCONST_H
0033 #define FLOATCONST_H
0034 
0035 #include "floatnum.h"
0036 
0037 #define MAXBERNOULLIIDX 68
0038 #define MAXERFCIDX 80
0039 
0040 #ifdef __cplusplus
0041 extern "C" {
0042 #endif
0043 
0044 extern floatstruct c1;
0045 extern floatstruct c2;
0046 extern floatstruct c3;
0047 extern floatstruct c12;
0048 extern floatstruct cExp;
0049 extern floatstruct cMinus1;
0050 extern floatstruct cMinus20;
0051 extern floatstruct c1Div2;
0052 extern floatstruct cLn2;
0053 extern floatstruct cLn3;
0054 extern floatstruct cLn7;
0055 extern floatstruct cLn10;
0056 extern floatstruct cPhi;
0057 extern floatstruct cPi;
0058 extern floatstruct cPiDiv2;
0059 extern floatstruct cPiDiv4;
0060 extern floatstruct c2Pi;
0061 extern floatstruct c1DivPi;
0062 extern floatstruct cSqrtPi;
0063 extern floatstruct c1DivSqrtPi;
0064 extern floatstruct cLnSqrt2PiMinusHalf;
0065 extern floatstruct c2DivSqrtPi;
0066 extern floatstruct cMinus0_4;
0067 extern floatstruct cBernoulliNum[68];
0068 extern floatstruct cBernoulliDen[68];
0069 extern floatstruct cUnsignedBound;
0070 
0071 extern int erfcdigits;
0072 extern floatstruct erfccoeff[MAXERFCIDX];
0073 extern floatstruct erfcalpha;
0074 extern floatstruct erfcalphasqr;
0075 extern floatstruct erfct2;
0076 extern floatstruct erfct3;
0077 
0078 void floatmath_init();
0079 void floatmath_exit();
0080 
0081 #ifdef __cplusplus
0082 }
0083 #endif
0084 
0085 #endif /* FLOATCONST_H */