Stojakapimp
Platinum Member
Hi all.
I'm trying to implement Bessel's function of the second kind, Y, in Javascript, but am running into problems. I found a paper that details a good way of approximating Bessel's function of the first kind, J, and have been able to successfully implement that.
But I can't find a similar method for approximating the Y function. On Wikipedia, it's stated that for non-integer a:
Ya(x) = (Ja(x)cos(a*pi) - J-a(x)) / sin(a*pi)
So it appears that I should be able to derive Y by finding J, but I think that the equation for the approximation of J is not valid for negative orders of a.
Wikipedia also states that for integer orders of a:
J-a(x) = (-1)^a*Ja(x)
So I have on equation relating Ya(x) to Ja(x) for non-integer orders of a but then another equation relating J-a(x) to Ja(x) for only integer orders. So it appears that I'm stuck.
Does anybody know of another relationship that I can use in order to either approximating Ya(x) or derive it somehow using Ja(x)?
I'm trying to implement Bessel's function of the second kind, Y, in Javascript, but am running into problems. I found a paper that details a good way of approximating Bessel's function of the first kind, J, and have been able to successfully implement that.
But I can't find a similar method for approximating the Y function. On Wikipedia, it's stated that for non-integer a:
Ya(x) = (Ja(x)cos(a*pi) - J-a(x)) / sin(a*pi)
So it appears that I should be able to derive Y by finding J, but I think that the equation for the approximation of J is not valid for negative orders of a.
Wikipedia also states that for integer orders of a:
J-a(x) = (-1)^a*Ja(x)
So I have on equation relating Ya(x) to Ja(x) for non-integer orders of a but then another equation relating J-a(x) to Ja(x) for only integer orders. So it appears that I'm stuck.
Does anybody know of another relationship that I can use in order to either approximating Ya(x) or derive it somehow using Ja(x)?