I found the reason because both arrays contains (0, 0). Is there way around it?
On Thursday, 1 January 2015 00:50:56 UTC-5, Zahirul ALAM wrote: > > Happy new year!! > > I am encountering a very odd fft error. I am trying fft NxN data. The data > is produced using a mathematical equation. After debugging I have found > that the following expression is gives NaN error: > > fft(besselj(1, sqrt(X.^2+Y.^2))./sqrt(X.^2+Y.^2)) > > where X and Y are Array{Float64,2}. > > if I write fft(besselj(1, sqrt(X.^2+Y.^2)) I get write answer. Seems > like the division with the array is the issue. is issue. any idea why? is > it a bug? >