Approximations to the delta function on a computer

AI Thread Summary
Approximating the delta function for computational use involves understanding its nature as a distribution rather than a conventional function. One effective method is to use a Gaussian function, which can approximate the delta function as its width approaches zero while its height increases accordingly. Additionally, the delta function can be represented in the context of Fourier transforms, particularly using a discrete Fourier transform. Most programming languages facilitate operations involving the delta function, allowing for straightforward convolution by simply evaluating the function at zero. These methods provide practical approaches for implementing delta function approximations in computational applications.
onsagerian
Messages
3
Reaction score
0
Hi,
I am looking for approximations to the delta functoin which I can use on a computer. Although I will never get an exact delta function, I can make an approximation that it can be improved as much as I like.

Would you help me to find the approximation of the delta function so that I can put it on the computer?

Thanks,
Best regards
 
Technology news on Phys.org


This doesn't make much sense without any context. A delta function is a distribution. If you are interested in integrating over it then that is simply evaluating the function at the delta function. You can represent them in a Fourier transform as a single point if you use a discrete Fourier transform. Another way to approximate it would be a Guassian function as you take the limit of its width to zero and increase its height accordingly.
 
Convolving with the delta function is built-in to most programming languages -- it's simply plugging 0 into a function.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top