Cody

Problem 1197. Numerical Integration

Input

  • x0, a real number greater than 0

Output

  • I, a numerical estimate of the integral
      x0
      /
  I = |  cosh(x) / sqrt(cosh(x0) - cosh(x)) dx
      /
      0

Example:

   x0=1.0  -->  I = 2.6405789412796

Remarks:

  • Aim at a relative precision better than 1e-10
  • The problem arises studying the frictionless movement of a mass point on a hanging wire, which follows the curve cosh(x).

Solution Stats

33.8% Correct | 66.2% Incorrect
Last Solution submitted on Nov 06, 2018