Skip to main content
1-Visitor
Aug 28, 2012 7:36 PM UTC
Question

Problem with integral

Hi,

I have problem with MathCAD Integral. The following are my equations and graph.

Equation.png

According to equation, if xx = 2.9m, the answer is 10kN-m. However, the result is 0.

If anyone know how to solve this issue, please help me to solve this problem.

Thank you.

3 replies

19-Tanzanite
Aug 28, 2012 9:37 PM UTC

It's the step changes that the integration routine doesn't like. One workaround is to do the integration piecewise:

Piecewise.PNG

Alan

Translate
1-Visitor
Aug 29, 2012 11:54 AM UTC

Thanks you very for your help Alan. My problem solve.

Translate
12-Amethyst
Aug 29, 2012 7:03 PM UTC

David,Allen is, as is normal, correct.
For more complicated functions, numerical integration with large vertical steps is difficult. You can study the problem by currpting the data a little to replace the vertical line transition with a sloping one. It introduces some error, but on the other hand assuming an infinite slope step is probably not correct either. Anyway for what its worth, see attached.

Translate