[Date Index] [Thread Index] [Author Index]
Re: Problem with evaluation of Besel Functions
Ariel sumeruk <ariel.sumeruk at gmail.com> wrote: > I am having a problem evaluating various functions, One example is the > following > > BesselJ[1.5, 0] evaluates to 0 Actually, it evaluates to 0., which is an approximate number. By contrast, BesselJ[3/2, 0] evaluates to 0 precisely. > but > (BesselJ[xx, yyy] /. xx -> 1.5) /. yyy -> 0 evaluates to complex infinity True, and that looks bad. More instructive, however, is to note that (BesselJ[xx, yyy] /. xx -> 3/2) /. yyy -> 0 evaluates to Indeterminate. Unlike ComplexInfinity, Indeterminate does not conflict with the evaluation of BesselJ[3/2, 0]. To get a numerical answer, rather than Indeterminate, we need to take a limit: In:= Limit[BesselJ[xx, yyy] /. xx -> 3/2, yyy -> 0] Out= 0 David Cantrell > I seem to encounter many of these problems with Bessel and Legendre > functions where I get actual diffrent numerical results depending on > How I set the parameters.