Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include "DataStructures/DataVector.hpp" 7 : 8 : /// Functions used in more than one cylindrical_endcap map 9 1 : namespace cylindrical_endcap_helpers { 10 : /// @{ 11 : /// Returns \f$\sin(ax)/x\f$ 12 1 : double sin_ax_over_x(const double x, const double a); 13 1 : DataVector sin_ax_over_x(const DataVector& x, const double a); 14 : /// @} 15 : 16 : /// @{ 17 : /// Returns \f$\frac{1}{x} \frac{d}{dx}\left( \frac{\sin(ax)}{x} \right)\f$, 18 : /// which approaches a finite limit as \f$x\f$ approaches zero. 19 1 : double one_over_x_d_sin_ax_over_x(const double x, const double a); 20 1 : DataVector one_over_x_d_sin_ax_over_x(const DataVector& x, 21 : const double a); 22 : /// @} 23 : } // namespace cylindrical_endcap_helpers