Main MRPT website > C++ reference for MRPT 1.5.6
fresnel.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
12 #include <cstdlib>
13 #include <mrpt/utils/mrpt_macros.h>
14 #include <mrpt/base/link_pragmas.h>
15 #include <mrpt/config.h>
16 
17 namespace mrpt
18 {
19  namespace math
20  {
21  /** @addtogroup fresnel_integrals_grp Fresnel integrals (`#include <mrpt/math/fresnel.h>`)
22  * \ingroup mrpt_base_grp
23  * @{ */
24 
25  /** Evaluates the integral from 0 to x of sqrt(2/pi) sin(t^2) dt. Equivalent to MATLAB fresnels()
26  * \sa https://en.wikipedia.org/wiki/Fresnel_integral
27  * \note Code based on http://www.mymathlib.com/functions/fresnel_sin_cos_integrals.html */
29 
30  /** Evaluates the integral from 0 to x of sqrt(2/pi) cos(t^2) dt. Equivalent to MATLAB fresnelc()
31  * \sa https://en.wikipedia.org/wiki/Fresnel_integral
32  *\note Code based on http://www.mymathlib.com/functions/fresnel_sin_cos_integrals.html */
34 
35 #ifdef HAVE_LONG_DOUBLE
36  /** long double version of fresnel_sin_integral */
37  long double BASE_IMPEXP lfresnel_sin_integral(long double x) MRPT_NO_THROWS;
38 
39  /** long double version of fresnel_cos_integral */
40  long double BASE_IMPEXP lfresnel_cos_integral(long double x) MRPT_NO_THROWS;
41 #endif
42 
43 
44  /** @} */
45 
46  } // End of MATH namespace
47 
48 } // End of namespace
49 
#define MRPT_NO_THROWS
C++11 noexcept: Used after member declarations.
double BASE_IMPEXP fresnel_cos_integral(double x) MRPT_NO_THROWS
Evaluates the integral from 0 to x of sqrt(2/pi) cos(t^2) dt.
Definition: fresnel.cpp:73
GLint GLint GLint GLint GLint x
Definition: glew.h:1166
double BASE_IMPEXP fresnel_sin_integral(double x) MRPT_NO_THROWS
Evaluates the integral from 0 to x of sqrt(2/pi) sin(t^2) dt.
Definition: fresnel.cpp:68



Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018