MRPT  2.0.4
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-2020, 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



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020