Numerical Integration - MATLAB Cody - MATLAB Central

Problem 1197. Numerical Integration

Difficulty:Rate

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

15.49% Correct | 84.51% Incorrect
Last Solution submitted on Jun 19, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers82

Suggested Problems

More from this Author7

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!