30 std::ostringstream ostr;
31 ostr <<
"TruncatedSphere: -> Error in class initialization ";
33 <<
" 'delta_height':" <<
m_dh <<
"\n\n";
34 ostr <<
"Check for height <= 2.*radius AND delta_height < height failed.";
35 throw std::runtime_error(ostr.str());
49 if (std::abs(q.mag()) < std::numeric_limits<double>::epsilon())
59 complex_t q_p = std::sqrt(qx * qx + qy * qy);
Defines Bessel functions in namespace Math.
Defines M_PI and some more mathematical constants.
Defines classes RealIntegrator, ComplexIntegrator.
Defines class TruncatedEllipsoidNet.
Defines class TruncatedSphere.
To integrate a complex function of a real variable.
complex_t integrate(const std::function< complex_t(double)> &f, double lmin, double lmax)
void checkNodeArgs() const
Raises exception if a parameter value is invalid.
complex_t formfactor_at_bottom(C3 q) const override
Complex form factor.
TruncatedSphere(double radius, double height, double dh)
double J1c(double x)
Bessel function J1(x)/x.