Macaulay functions in MUPad

85 views (last 30 days)
Ed Davis
Ed Davis on 12 Nov 2014
In general the Macaulay function (<x-a>^n) is evaluated as 0 for x<a and x^n for x>a.
The integral is defined as int(<x-a>^n)=(<x-a>^(n+1))/(n+1)
I would like to implement functions of this type in MuPad to allow solving of beam deflection problems symbolically. However, I am not able to find a function that behaves as the Macaulay functions do. Any suggestions would be appreciated.
alejandro buitrago lopez
alejandro buitrago lopez on 20 May 2022
were any of you able to solve this, i' currently trying to program this so i can print the diagrams in matlab.

Sign in to comment.

Answers (1)

Nathan Hardenberg
Nathan Hardenberg on 29 May 2020
Not quite the solution you are looking for, but it is certainly possible to use the heaviside function. The heaviside function is also integratable and differentiable, so it is possible to use it instead.
<x - a>^0 is heaviside(x-a)
For functions with a higher exponent you have to write something like this
x^2 * heaviside(x-a)
this "switches" the function x^2 on (after a). Before it is 0

Community Treasure Hunt

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

Start Hunting!