Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. lilsalsa74

    Beginner--How do I write output of 1-D Fourier Transform program?

    Thank you so much!! That was extremely helpful. Aren't Fourier Transforms fun?! :-)
  2. lilsalsa74

    Beginner--How do I write output of 1-D Fourier Transform program?

    Thank you so much again, Mikrom. Just having someone give input really helps a lot. So I changed the declaration of pi and a(4) to kind=2 and now the program does, in fact, run. The values of the coefficients the program outputs seem to be correct(I checked with a well-known function) but they...
  3. lilsalsa74

    Beginner--How do I write output of 1-D Fourier Transform program?

    Ok so I tried creating a main program with an array a(i). I then tried calling a different subroutine which computes a Real Discrete Fourier Transform since I gave a(i) real values. Here is the main program: program maincall real a(4) real, parameter :: pi = 3.14159265 integer n n = 4 a(1) =...
  4. lilsalsa74

    Beginner--How do I write output of 1-D Fourier Transform program?

    also, thank you for your reply mikrom!
  5. lilsalsa74

    Beginner--How do I write output of 1-D Fourier Transform program?

    So if I wrote a main program: program main call cdft(2*n, cos(pi/n), sin(pi/n), a) How would I go about inputting data and then outputting the result of the fourier transform? Would I create an array a(n)? Any help would be much appreciated!!
  6. lilsalsa74

    Beginner--How do I write output of 1-D Fourier Transform program?

    I am a complete beginner at programming and using Fortran. I am actually a Physics major and I am trying to learn more about Fourier Transforms. I have been looking at Ooura's 1-D DFT program and it compiles but does not give an output of the Fourier Transform. How would I do this? (Also, Dr...

Part and Inventory Search

Back
Top