And BTW, Gambas gives more accurate result! Gambas; -0.177596771314338 Actual; -0.177596771314338304347397013074758711071130356008509128990...
Jussi On Sat, May 21, 2011 at 22:01, Jussi Lahtinen <jussi.lahti...@gmail.com>wrote: > Not me, it's John! > I have no need for other basic, even if I don't need GUI, Gambas is my > option. > Why not to do command line programs with Gambas!?? > > It's much easier and simpler!!! > This is all you need in Gambas: > > Extern gsl_sf_bessel_J0(x As Float) As Float In "libgsl:0" > > Public Sub Main() > Print gsl_sf_bessel_J0(5) > End > > Jussi > > > > > On Sat, May 21, 2011 at 21:04, wally <wa...@voosen.eu> wrote: > >> On Saturday, May 21, 2011 18:54:03 John Spikowski wrote: >> > On Sat, 2011-05-21 at 18:27 +0200, wally wrote: >> > > Jussi, >> > > >> > > GSL is grouped in similar functions and i think if one member of a >> group >> > > works already, the remaining members should work also with similar >> code. >> > > I will try to make an emsemble of gb3 snippets and see what else is >> > > necessary to cover at least some main features of GSL. >> > > >> > > wally >> > >> > I'm adding GSL support to ScriptBasic by dynamically scripting the >> > library at run time. My interests in GSL don't require a GUI so Gambas >> > is overkill in my case. Here is an example of calling the "Regular >> > Cylindrical Bessel" function. >> > >> > DECLARE SUB DLL ALIAS "_idll" LIB "gtk-server" >> > DECLARE SUB REQUIRE ALIAS "_idll_require" LIB "gtk-server" >> > DECLARE SUB DEFINE ALIAS "_idll_define" LIB "gtk-server" >> > >> > REQUIRE "libgsl.so" >> > DEFINE "gsl_sf_bessel_J0 NONE DOUBLE 1 DOUBLE" >> > >> > PRINT FORMAT("J0(%g) = %.18e\n", 5.0, DLL("gsl_sf_bessel_J0 " & 5.0)) >> > >> > RESULTS: >> > >> > J0(5) = -1.775970000000000326e-01 >> > >> > >> > >> > >> > >> > >> --------------------------------------------------------------------------- >> > --- 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@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> Jussi >> >> never met scriba but installed and tried your bessel: >> error &H10:The requested module can not be loaded. >> seems i should read some docs and load some modules first :) >> >> wally >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> 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@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user