Math.cpp
Go to the documentation of this file.
1 // (C) Copyright Renaud Detry 2007-2015.
2 // Distributed under the GNU General Public License and under the
3 // BSD 3-Clause License (See accompanying file LICENSE.txt).
4 
5 /** @file */
6 
7 #include <gsl/gsl_math.h>
8 #include <gsl/gsl_sf_hyperg.h>
9 #include <gsl/gsl_sf_bessel.h>
10 
11 #include <nuklei/Math.h>
12 
13 namespace nuklei
14 {
15  double confluentHypergeometric1F1(const double a, const double b, const double x)
16  {
17  return gsl_sf_hyperg_1F1(a, b, x);
18  }
19 
20  double besselI1(const double x)
21  {
22  return gsl_sf_bessel_I1(x);
23  }
24 
25  bool rfe(const double a, const double b, double tol)
26  {
27  return gsl_fcmp(a, b, tol) == 0;
28  }
29 }
Public namespace.
Definition: Color.cpp:9
© Copyright 2007-2013 Renaud Detry.
Distributed under the terms of the GNU General Public License (GPL).
(See accompanying file LICENSE.txt or copy at http://www.gnu.org/copyleft/gpl.html.)
Revised Sun Sep 13 2020 19:10:06.