calculation of bessel functions j_l(x)
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.fortran Profile…
 Up
calculation of bessel functions j_l(x)         


Author: Fatemeh
Date: Sep 13, 2008 01:15

Dear all ;

I want to use nr.f90 in order to calculate bessel functions j_L(x)
in my program.
but I see this error in runnig:

nrerror: an assertion failed with this tag:bessj_s args
program terminated by assert1

Is there anyone can help me? (this error comes from nrutil.f90 but I
don't know what should I do)
6 Comments
Re: calculation of bessel functions j_l(x)         


Author: ralf.schaa
Date: Sep 13, 2008 02:07

On Sep 13, 7:15 pm, Fatemeh gmail.com> wrote:
> Dear all ;
>
> I want to use  nr.f90 in order to calculate bessel functions j_L(x)
> in my program.
> but I see this error in runnig:
>
>  nrerror: an assertion failed with this tag:bessj_s args
> program terminated by assert1
>
> Is there anyone can help me? (this error comes from nrutil.f90 but I
> don't know what should I do)

I do not have the answer to your question but if you just want to
compute a bessel function's result you might want to give the latest
Gfortran a try which has intrinsics for this (real arguments as far as
I know)

Cheers
-Ralf
no comments
Re: calculation of bessel functions j_l(x)         


Author: Fatemeh
Date: Sep 13, 2008 04:16

Dear all ;

There is a command at the first line of bessj.f90 that when I comment
it, the program runs without any error. (this command is : call
assert(n >= 2, 'bessj_s args') )

bessj.f90:
--------------------
FUNCTION bessj_s(n,x)
USE nrtype; USE nrutil, ONLY : assert
USE nr, ONLY : bessj0,bessj1
IMPLICIT NONE
INTEGER(I4B), INTENT(IN) ...
Show full article (2.37Kb)
no comments
Re: calculation of bessel functions j_l(x)         


Author: Fatemeh
Date: Sep 13, 2008 04:30

I forgot to say that I want to calculate J_L(x) for L=0 to L=8 . but
without the mentioned comment it cannot be run even for L=0.
no comments
Re: calculation of bessel functions j_l(x)         


Author: Dan Nagle
Date: Sep 13, 2008 04:34

Hello,

On 2008-09-13 07:16:47 -0400, Fatemeh gmail.com> said:
> FUNCTION bessj_s(n,x)
> call assert(n >= 2, 'bessj_s args')
> Would you please tell me that is it true to comment this line:
> call assert(n >= 2, 'bessj_s args')

Do you know the value of the actual arguments?

BTW, if you want very high accuracy, the NR Bessel routines
might not be the best way to compute.

--
Cheers!

Dan Nagle
no comments
Re: calculation of bessel functions j_l(x)         


Author: Fatemeh
Date: Sep 13, 2008 04:39

I don't know why, but apparently it cannot calculate bessel function
for n<2 (for example J_L(x) for L=1 and L=0)

Is there any one that have a subroutine to calculate J_l(x) for all l?
no comments
Re: calculation of bessel functions j_l(x)         


Author: Fatemeh
Date: Sep 13, 2008 05:14

I found the answer myself.
there are two files which is belonged to l=0 , l=1 : bessj0.f90
bessj1.f90
no comments

RELATED THREADS
SubjectArticles qty Group
Hypergeometric functions and beta functionssci.math ·
Using Calculated Text Box Values in Report Footer Calculationsmicrosoft.public.access.reports ·