Capability and limits of the Mathcad 15 built-in numerical integration function
Hi everyone,
I would appreciate if someone would like to share his/her experiences concerning the numerical integration function. I am aware of what the help says, namely that "Sharply peaked integrands, or functions whose shape is not readily characterized by a single length scale, do not evaluate accurately. This is the nature of numerical integration. Accurate results may be obtained by breaking an integral into pieces and separately integrating around the peak and away from the peak.".
I am experiencieng some difficulties integrating artificially generated earthquake acceleration time histories (discretized, of course, for example with a sampling rate of 100 or 200 Hz) to velocities and then to displacements. Admittedly they are peaked (see attached example), but I am surprised how often the standard integral function of MathCAD 15 fails to converge (with autoselect, or with Romberg or Adaptive). The convergence problems happen if I use linterp on the time history, and tend to diminish if I interpolate the points with lspline, pspline or cspline. TOL is 1E-3 as per default.
I have been forced to develop my own function (a Simpson rule iterated everytime doubling the number of intervals until relative precision of TOL is reached).
So as I said, I would like to know if some other user has encountered similar issues.
Best regards & thanks in advance
Claudio

