MRPT  1.9.9
fresnel.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #pragma once
11 #include <cstdlib>
12 
13 namespace mrpt::math
14 {
15 /** @addtogroup fresnel_integrals_grp Fresnel integrals (`#include
16  * <mrpt/math/fresnel.h>`)
17  * \ingroup mrpt_math_grp
18  * @{ */
19 
20 /** Evaluates the integral from 0 to x of sqrt(2/pi) sin(t^2) dt. Equivalent to
21  * MATLAB fresnels()
22  * \sa https://en.wikipedia.org/wiki/Fresnel_integral
23  * \note Code based on
24  * http://www.mymathlib.com/functions/fresnel_sin_cos_integrals.html */
25 double fresnel_sin_integral(double x) noexcept;
26 
27 /** Evaluates the integral from 0 to x of sqrt(2/pi) cos(t^2) dt. Equivalent to
28  *MATLAB fresnelc()
29  * \sa https://en.wikipedia.org/wiki/Fresnel_integral
30  *\note Code based on
31  *http://www.mymathlib.com/functions/fresnel_sin_cos_integrals.html */
32 double fresnel_cos_integral(double x) noexcept;
33 
34 /** long double version of fresnel_sin_integral */
35 long double lfresnel_sin_integral(long double x) noexcept;
36 
37 /** long double version of fresnel_cos_integral */
38 long double lfresnel_cos_integral(long double x) noexcept;
39 
40 /** @} */
41 
42 } // namespace mrpt::math
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
long double lfresnel_sin_integral(long double x) noexcept
long double version of fresnel_sin_integral
Definition: fresnel.cpp:56
This base provides a set of functions for maths stuff.
long double lfresnel_cos_integral(long double x) noexcept
long double version of fresnel_cos_integral
Definition: fresnel.cpp:62
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:3542



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019