[Gambas-user] Gambas3 and Gnu scientific library

John Spikowski support at ...2529...
Sun May 22 11:24:50 CEST 2011


On Sun, 2011-05-22 at 09:09 +0200, wally wrote:
> here is a gambas3 demo of gsl cspline.
> wally 

Here is a working ScriptBasic Windows version (running under Wine) using
the DYC extension module for the FFI. (GTK-Server was the issue under
Ubuntu 64)


Code: (testgsl.sb)

DECLARE SUB DLL ALIAS "dyc" LIB "dyc"

dv = DLL("ms8,d,libgsl-0.dll,gsl_sf_bessel_J0,d",5.0)

PRINT FORMAT("%.16e",dv)

Results:

C:\scriptbasic\test>scriba testgsl.sb
-1.7759677131433826e-001
C:\scriptbasic\test>






More information about the User mailing list