Why is the int (integral) of the dirac function sign/2 instead of the heaviside function?

1 次查看(过去 30 天)
In MATLAB, the result of taking the integral of the "dirac" function is sign/2.
In many resources online and in textbooks the integral of the dirac delta function is defined as the heavyside step function. One such example can be found at:
Why is there a discrepancy?

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2024-8-29
Int(f(x), x) in MATLAB does not explicitly include the +C (an arbitrary constant that must be included when integrating).
The output of the heavyside function is 0 if negative, 1 if positive. The output of the sign function is 1 if positive and -1 if negative. if you divide the sign function output range by two your possible results become [-1/2, 1/2].
Adding 1/2 to this set of possible answers produces [0, 1], identical outputs to the heavyside function. The 1/2 that we added is included in that implicit +C.
Please run the below command in the command window of installed MATLAB R2019a version to get release specific documentation on the implicit +C for the "dirac" function:
>> web(fullfile(docroot, 'symbolic/dirac.html'))
As we can see, in the context of integrals, the heavyside function and the sign function divided by 2 are equivalent when each has an arbitrary constant.  These are both equally valid solutions. 
Please follow the below link to search for the required information regarding the current release:

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Special Functions 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by