Main MRPT website > C++ reference for MRPT 1.9.9
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/config.h>
15 
16 namespace mrpt
17 {
18 namespace math
19 {
20 /** @addtogroup fresnel_integrals_grp Fresnel integrals (`#include
21  * <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
26  * MATLAB fresnels()
27  * \sa https://en.wikipedia.org/wiki/Fresnel_integral
28  * \note Code based on
29  * http://www.mymathlib.com/functions/fresnel_sin_cos_integrals.html */
30 double fresnel_sin_integral(double x) noexcept;
31 
32 /** Evaluates the integral from 0 to x of sqrt(2/pi) cos(t^2) dt. Equivalent to
33  *MATLAB fresnelc()
34  * \sa https://en.wikipedia.org/wiki/Fresnel_integral
35  *\note Code based on
36  *http://www.mymathlib.com/functions/fresnel_sin_cos_integrals.html */
37 double fresnel_cos_integral(double x) noexcept;
38 
39 #ifdef HAVE_LONG_DOUBLE
40 /** long double version of fresnel_sin_integral */
41 long double lfresnel_sin_integral(long double x) noexcept;
42 
43 /** long double version of fresnel_cos_integral */
44 long double lfresnel_cos_integral(long double x) noexcept;
45 #endif
46 
47 /** @} */
48 
49 } // End of MATH namespace
50 
51 } // End of namespace
double fresnel_cos_integral(double x) noexcept
Evaluates the integral from 0 to x of sqrt(2/pi) cos(t^2) dt.
Definition: fresnel.cpp:74
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
double fresnel_sin_integral(double x) noexcept
Evaluates the integral from 0 to x of sqrt(2/pi) sin(t^2) dt.
Definition: fresnel.cpp:68
GLenum GLint x
Definition: glext.h:3538



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019