コード例 #1
0
/// Hyperbolic sine integral.
double
Shi(double x)
{
  gsl_sf_result result;
  int stat = gsl_sf_Shi_e(x, &result);
  if (stat != GSL_SUCCESS)
    {
      std::ostringstream msg("Error in Shi:");
      msg << " x=" << x;
      throw std::runtime_error(msg.str());
    }
  else
    return result.val;
}
コード例 #2
0
double gsl_sf_Shi(const double x)
{
  EVAL_RESULT(gsl_sf_Shi_e(x, &result));
}