RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
rtmath.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Weill Medical College of Cornell University
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the Free
6  * Software Foundation; either version 3 of the License, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc., 675 Mass
16  * Ave, Cambridge, MA 02139, USA.
17  */
18 
19 #include "powfast.hpp"
20 
21 /*** Header Guard ***/
22 #ifndef REALTIMEMATH_H
23 #define REALTIMEMATH_H
24 
26 {
27 
28 public:
29  RealTimeMath();
30  ~RealTimeMath();
31  double fastEXP(double);
32  double fastPOW(double, double);
33 
34 private:
35  // PowFast object
36  const PowFast* powFast;
37  int powCount;
38  double powAns;
39  double powExp;
40  int n;
41 };
42 
43 #endif
double fastEXP(double)
Definition: rtmath.cpp:37
double fastPOW(double, double)
Definition: rtmath.cpp:79
double powAns
Definition: rtmath.h:38
int powCount
Definition: rtmath.h:37
RealTimeMath()
Definition: rtmath.cpp:26
~RealTimeMath()
Definition: rtmath.cpp:31
const PowFast * powFast
Definition: rtmath.h:36
double powExp
Definition: rtmath.h:39