[Top][All Lists]

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

[Bug-gsl] [bug #55412] Bessel function returns incorrect value

From: Vladimir Khodygo
Subject: [Bug-gsl] [bug #55412] Bessel function returns incorrect value
Date: Mon, 7 Jan 2019 12:59:40 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0


                 Summary: Bessel function returns incorrect value
                 Project: GNU Scientific Library
            Submitted by: vladk
            Submitted on: Mon 07 Jan 2019 05:59:39 PM UTC
                Category: Documentation
                Severity: 3 - Normal
        Operating System: 
                  Status: None
             Assigned to: None
             Open/Closed: Open
                 Release: any
         Discussion Lock: Any



If you run 

# include <stdio.h> 
# include <gsl/gsl_sf_bessel.h> 
int main (void)
double x = 5.0; 
double y = gsl_sf_bessel_j0 (x); 
printf ("J0(%g) = %.18e\n", x, y);

you get 

JO(5) =  -1.917848549326277019e-01

That is correct answer according to the definition sin(x)/x.
However, the documentation says that the answer is 
J0(5) = -1.775967713143382642e-01


Reply to this item at:


  Message sent via Savannah

reply via email to

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