====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
programming:transform_spectral_coeff_to_physical_data_points [2010/08/28 16:04] emmanuel |
programming:transform_spectral_coeff_to_physical_data_points [2010/08/28 16:08] (current) emmanuel |
||
---|---|---|---|
Line 11: | Line 11: | ||
We can determine the physical values from the spectral coefficients by evaluating the expansion sum (eqn 20 in the user's manual.) | We can determine the physical values from the spectral coefficients by evaluating the expansion sum (eqn 20 in the user's manual.) | ||
- | I wanted to compared the physical values computed by this sum with the values returned by the method u.makephysical(). This method use FFTW. | + | I wanted to compared the physical values computed by this sum with the values returned by the method u.makephysical(). This method use the FFTW algorithm and |
- | So I was just wondering if there is any difference. The fact is that, I do not obtained the same results. | + | I was expecting no difference. The fact is that, I do not obtained the same results. |
I have attached part of the code I am using. Do you think that something is incorrect ? | I have attached part of the code I am using. Do you think that something is incorrect ? | ||
Line 19: | Line 19: | ||
Example of results displayed : | Example of results displayed : | ||
- | 0.00258953 // u computing Fourier series | + | 0.00258953 // u from expansion sum |
0.00604268 // return of u.makePhysical (FFTW) | 0.00604268 // return of u.makePhysical (FFTW) | ||