bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] Error in evaluating scaled regular modified bessel functions o


From: Yoram Burak
Subject: [Bug-gsl] Error in evaluating scaled regular modified bessel functions of large arguments
Date: Fri, 23 Dec 2005 16:23:46 -0800

Attempt to evaluate gsl_sf_bessel_In_scaled(n,x) results in an error
for n>=2 and x larger than about 10^7.



#include <stdio.h>
#include <gsl/gsl_sf_bessel.h>

int main()
{
  double logx, x;

  for(logx = 0; logx < 20; logx++) {
    x = exp(logx);
    printf("%13le  %13le\n", x, gsl_sf_bessel_In_scaled(2,x));
  }
}





--
Yoram Burak
Kavli Institute for Theoretical Physics
UC Santa Barbara, California 93106




reply via email to

[Prev in Thread] Current Thread [Next in Thread]