SpeedCrunch  0.11
/usr/src/RPM/BUILD/speedcrunch-0.11/src/math/floattrig.h
Go to the documentation of this file.
00001 /* floattrig.h: trigonometry functions, based on floatnum. */
00002 /*
00003     Copyright (C) 2007, 2008 Wolf Lammen.
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License , or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; see the file COPYING.  If not, write to:
00017 
00018       The Free Software Foundation, Inc.
00019       59 Temple Place, Suite 330
00020       Boston, MA 02111-1307 USA.
00021 
00022 
00023     You may contact the author by:
00024        e-mail:  ookami1 <at> gmx <dot> de
00025        mail:  Wolf Lammen
00026               Oertzweg 45
00027               22307 Hamburg
00028               Germany
00029 
00030 *************************************************************************/
00031 
00032 #ifndef FLOATTRIG_H
00033 # define FLOATTRIG_H
00034 
00035 #include "floatnum.h"
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 void _arctanlt1(floatnum x, int digits);
00042 void _arctan(floatnum x, int digits);
00043 void _arccosxplus1lt0_5(floatnum x, int digits);
00044 void _arcsinlt0_5(floatnum x, int digits);
00045 void _arccos(floatnum x, int digits);
00046 void _arccosxplus1(floatnum x, int digits);
00047 void _arcsin(floatnum x, int digits);
00048 char _cosminus1ltPiDiv4(floatnum x, int digits);
00049 void _sinltPiDiv4(floatnum x, int digits);
00050 void _tanltPiDiv4(floatnum x, int digits);
00051 void _cos(floatnum x, int digits);
00052 void _sin(floatnum x, int digits);
00053 char _tan(floatnum x, int digits);
00054 char _cosminus1(floatnum x, int digits);
00055 char _trigreduce(floatnum x, int digits);
00056 void _sinpix(floatnum x, int digits);
00057 
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061 
00062 #endif /* FLOATTRIG_H */