Macaulay functions in MUPad
49 ビュー (過去 30 日間)
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.
回答 (1 件)
Nathan Hardenberg 2020 年 5 月 29 日
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
heaviside function: https://de.mathworks.com/help/symbolic/heaviside.html