[Gambas-user] Gambas3 and Gnu scientific library

Jussi Lahtinen jussi.lahtinen at ...626...
Sat May 21 21:27:18 CEST 2011


Gambas!
http://www.wolframalpha.com/input/?i=besselj0%285%29

Jussi


On Sat, May 21, 2011 at 22:24, John Spikowski <support at ...2529...>wrote:

> On Sat, 2011-05-21 at 22:04 +0300, Jussi Lahtinen wrote:
> > And BTW, Gambas gives more accurate result!
> > Gambas; -0.177596771314338
> > Actual;
>  -0.177596771314338304347397013074758711071130356008509128990...
> >
> > Jussi
> >
>
> J0(5) = -1.775970000000000326156879282279987819492816925049e-01
>
> I would be interest to know which is actually correct. (Gambas or
> ScriptBasic)
>
> Here is a C version to try.
>
> #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) = %.48e\n", x, y);
>  return 0;
> }
>
>
>
>
>
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its
> next-generation tools to help Windows* and Linux* C/C++ and Fortran
> developers boost performance applications - including clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list