# Compute fourrier transform in Julia

**URL:** <https://discourse.julialang.org/t/compute-fourrier-transform-in-julia/99664>\
**Category:** Numerics\
**Tags:** question\
**Created:** [May 31, 2023, 10:35am UTC](https://discourse.julialang.org/t/compute-fourrier-transform-in-julia/99664 "2023-05-31T10:35:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [May 31, 2023, 10:48am UTC](https://discourse.julialang.org/t/compute-fourrier-transform-in-julia/99664/2 "2023-05-31T10:48:38Z")

</div>

I don’t know the answer to your question, but both of these functions reference an `a` variable that isn’t passed as an argument. You typically want to avoid referencing globals in Julia (unless `a` is a `const`).

Also, forgive me, but this reads a bit like a homework question. There are surely people here that can help (have you seen FFTW.jl? Or [JuliaHub](https://juliahub.com/ui/Search?q=Fourier%20transform&type=packages)), but I think being a bit more specific with what you’re asking might help. Eg, what is your input (using a MWE)? What have you tried? What is the error you’re seeing?  
[This](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757) has some good tips for asking questions.

---

_[View the full topic](https://discourse.julialang.org/t/compute-fourrier-transform-in-julia/99664)._
