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-2018, 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 #include <cstdlib>
12 
13 namespace mrpt
14 {
15 namespace math
16 {
17 /** @addtogroup fresnel_integrals_grp Fresnel integrals (`#include
18  * <mrpt/math/fresnel.h>`)
19  * \ingroup mrpt_math_grp
20  * @{ */
21 
22 /** Evaluates the integral from 0 to x of sqrt(2/pi) sin(t^2) dt. Equivalent to
23  * MATLAB fresnels()
24  * \sa https://en.wikipedia.org/wiki/Fresnel_integral
25  * \note Code based on
26  * http://www.mymathlib.com/functions/fresnel_sin_cos_integrals.html */
27 double fresnel_sin_integral(double x) noexcept;
28 
29 /** Evaluates the integral from 0 to x of sqrt(2/pi) cos(t^2) dt. Equivalent to
30  *MATLAB fresnelc()
31  * \sa https://en.wikipedia.org/wiki/Fresnel_integral
32  *\note Code based on
33  *http://www.mymathlib.com/functions/fresnel_sin_cos_integrals.html */
34 double fresnel_cos_integral(double x) noexcept;
35 
36 /** long double version of fresnel_sin_integral */
37 long double lfresnel_sin_integral(long double x) noexcept;
38 
39 /** long double version of fresnel_cos_integral */
40 long double lfresnel_cos_integral(long double x) noexcept;
41 
42 /** @} */
43 
44 } // End of MATH namespace
45 
46 } // End of namespace
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::math::lfresnel_sin_integral
long double lfresnel_sin_integral(long double x) noexcept
long double version of fresnel_sin_integral
Definition: fresnel.cpp:56
mrpt::math::lfresnel_cos_integral
long double lfresnel_cos_integral(long double x) noexcept
long double version of fresnel_cos_integral
Definition: fresnel.cpp:62
mrpt::math::fresnel_sin_integral
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
mrpt::math::fresnel_cos_integral
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
x
GLenum GLint x
Definition: glext.h:3538



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST