Skip to main content
1-Visitor
March 20, 2015
Solved

Mathcad Prime integrate a piece-wise function?

  • March 20, 2015
  • 1 reply
  • 2533 views

Is it possible for Mathcad Prime to integrate a piece wise function? In the attached worksheet I am attempting to integrate a piece-wise function 4 times. If possible I'd like to be able to create a graph of these functions and then pull values from the graph.

Best answer by AndyWesterman

The graphing error may stem from the fact that you define x from -1ft to ... , but the definition of w(x) is for values of x from 0ft to l.

the function itself is very discontinuous & this may lead to failure to integrate or numerical errors due to rounding and/or aliasing.

In the attachment, a simplified function will integrate, but returns 0.

regards

Andy

1 reply

19-Tanzanite
March 20, 2015

Sorry. It's a Mathcad 3.1 file, and Mathcad 3.0 (which is what I have) can't read it. You also can't save it back to version 3.0. Amazing, but true.

24-Ruby III
March 24, 2015

Please find in attachment PDF and XPS version of this worksheet.

12-Amethyst
March 24, 2015

The graphing error may stem from the fact that you define x from -1ft to ... , but the definition of w(x) is for values of x from 0ft to l.

the function itself is very discontinuous & this may lead to failure to integrate or numerical errors due to rounding and/or aliasing.

In the attachment, a simplified function will integrate, but returns 0.

regards

Andy