22 , m_mean_radius(m_P[0])
34 const double max_ql = std::sqrt(-4 *
M_PI * std::log(std::numeric_limits<double>::min()) / 3);
37 if (std::abs(qzh) > max_ql)
40 if (std::abs(qxr) > max_ql)
43 if (std::abs(qyr) > max_ql)
46 return pow(
m_mean_radius, 3) * std::exp(-(qxr * qxr + qyr * qyr + qzh * qzh) / 4.0 /
M_PI);
Defines M_PI and some more mathematical constants.
Defines class GaussSphere.
The form factor of a Gaussian sphere.
GaussSphere(std::vector< double > P)
const double & m_mean_radius
complex_t formfactor_at_bottom(C3 q) const override
void checkNodeArgs() const
Raises exception if a parameter value is invalid.