SymPy Fourier Transform of Cosine and Sine Returns Zero

8 views
Skip to first unread message

ODARI KIBISI CHARLES

unread,
Jun 27, 2026, 6:01:02 PM (14 hours ago) Jun 27
to sympy

Hi everyone,

I'm currently working on implementing Fourier Transform computations using SymPy to better understand the transforms of signals such as and .

However, when I use fourier_transform() on these functions, SymPy returns 0 instead of the expected result involving Dirac delta functions, for example:

From my understanding, these transforms are distributions (generalized functions), so I'm wondering:

  1. Does SymPy's fourier_transform() support Fourier transforms in the distributional sense?
  2. Is there a specific way to define the assumptions on the variables (e.g., real, positive) or to invoke the transform so that the Dirac delta terms are returned?
  3. If not, what is the recommended approach for symbolically computing or representing Fourier transforms of pure sinusoids in SymPy?

Any guidance, examples, or best practices would be greatly appreciated. Thank you!


CONFIDENTIAL NOTICE: This email from Dedan Kimathi University of Technology is confidential and may contain sensitive information. It is intended solely for the recipient. Any unauthorized access, use, disclosure, or distribution is strictly prohibited. The university is not responsible for any harm caused by viruses. By receiving this email, you consent to the processing of personal data in accordance with Kenya’s Data Protection Act, 2019.
Reply all
Reply to author
Forward
0 new messages