#define _REAL_H
#include "common.h"
+#include <cmath>
#define REAL_SINGLE 0
#elif REAL == REAL_LONG_DOUBLE
typedef long double Real;
#elif REAL == REAL_VFPU
- typedef VFPU::Float Real;
+ typedef VFPU::VFloat Real;
inline float Float(const Real & r) {return r.m_value;}
inline double Double(const Real & r) {return r.m_value;}
#elif REAL == REAL_RATIONAL
-
typedef Rational<int64_t> Real;
inline float Float(const Real & r) {return (float)r.ToDouble();}
inline double Double(const Real & r) {return r.ToDouble();}
inline double Double(float f) {return (double)f;}
inline double Double(double f) {return (double)f;}
inline double Double(long double f) {return (double)(f);}
+ inline double Sqrt(double f) {return sqrt(f);}
inline Real Power(const Real & a, int n)
{
return r;
}
+
+
}
#endif //_REAL_H