diff --git a/Base/Math/Functions.cpp b/Base/Math/Functions.cpp index cfa66a587a7cd80b97a2da2b64fc67fd872616fb..56765172b4cf2de1c019eb976899f4dcfdd17da6 100644 --- a/Base/Math/Functions.cpp +++ b/Base/Math/Functions.cpp @@ -19,7 +19,6 @@ #include <fftw3.h> #include <gsl/gsl_sf_erf.h> #include <gsl/gsl_sf_expint.h> -#include <gsl/gsl_sf_trig.h> #include <limits> #include <random> #include <stdexcept> // need overlooked by g++ 5.4 @@ -52,7 +51,9 @@ double Math::cot(double x) double Math::sinc(double x) // Sin(x)/x { - return gsl_sf_sinc(x / M_PI); + if (x==0) + return 1; + return std::sin(x) / x; } complex_t Math::sinc(const complex_t z) // Sin(x)/x diff --git a/auto/Wrap/doxygenSample.i b/auto/Wrap/doxygenSample.i index ec901a2cce255aa03a9ecf7de13c10b91e95359f..fcc5a40eb60d9417b0a2d3b841a97baddefa6394 100644 --- a/auto/Wrap/doxygenSample.i +++ b/auto/Wrap/doxygenSample.i @@ -5622,10 +5622,10 @@ C++ includes: ZLimits.h "; -// File: namespace_0d105.xml +// File: namespace_0d120.xml -// File: namespace_0d108.xml +// File: namespace_0d123.xml // File: namespace_0d129.xml @@ -6361,21 +6361,6 @@ Used by the hard sphere and by several soft sphere classes. // File: IProfileRipple_8h.xml -// File: PolyhedralComponents_8cpp.xml - - -// File: PolyhedralComponents_8h.xml - - -// File: PolyhedralTopology_8h.xml - - -// File: Polyhedron_8cpp.xml - - -// File: Polyhedron_8h.xml - - // File: Prism_8cpp.xml @@ -6421,6 +6406,21 @@ Used by the hard sphere and by several soft sphere classes. // File: Lattice3D_8h.xml +// File: PolyhedralComponents_8cpp.xml + + +// File: PolyhedralComponents_8h.xml + + +// File: PolyhedralTopology_8h.xml + + +// File: Polyhedron_8cpp.xml + + +// File: Polyhedron_8h.xml + + // File: SomeFormFactors_8cpp.xml