mbsim  4.0.0
MBSim Kernel
eps.h
1/* Copyright (C) 2004-2009 MBSim Development Team
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2.1 of the License, or (at your option) any later version.
6 *
7 * This library is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
11 *
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 *
16 * Contact: martin.o.foerg@googlemail.com
17 */
18
19#ifndef _EPS_H_
20#define _EPS_H_
21
22#include <limits>
23#include <cmath>
24
25namespace MBSim {
26
27 constexpr double macheps = std::numeric_limits<double>::epsilon();
28
29 extern const double epsroot;
30
31 extern const double epsrootInv;
32
33}
34
35#endif /* _EPS_H_ */
36
namespace MBSim
Definition: bilateral_constraint.cc:30