[Top][All Lists]

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

[Help-gsl] gsl example

From: Kevin Luxford
Subject: [Help-gsl] gsl example
Date: Sat, 17 Sep 2016 16:08:25 +1000
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

I am using Cygwin64 on a Windows 10 computer. I have downloaded the gsl pack. The header files are in /usr/local/include. I have used nano to enter the example code from the gsl reference pdf into a file named example.c. I have used the compile and link commands as in the gsl reference (by copying from the reference and pasting into my Gygwin64 terminal). The only modification is that I use -o example.exe as the first argument in the linker command. I executed example.exe and received a value for the Bessel function J0(x) for x = 5 of J0(5) = -1.917848549326277019e-01 instead of J0(5) = -1.775967713143382642e-01.

Could anyone please explain to this old newby why he got a different solution?

reply via email to

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