There is a NaN item at the very centre. How to deal with it?

On Thursday, 1 January 2015 02:25:34 UTC-5, Zahirul ALAM wrote:
>
> any help please
>
> On Thursday, 1 January 2015 01:07:33 UTC-5, Zahirul ALAM wrote:
>>
>> may be not
>>
>> On Thursday, 1 January 2015 01:05:02 UTC-5, Zahirul ALAM wrote:
>>>
>>> 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? 
>>>>
>>>

Reply via email to