does anybody knows about a free VB(A) library containing all kind
Bessel functions for real and / or complex arguments. Any feedback
would be much appreciated.
Many thanks in advance,
Marco
> does anybody knows about a free VB(A) library containing all kind
> Bessel functions for real and / or complex arguments. Any feedback
> would be much appreciated.
GNU Scientific Library:
http://gnuwin32.sourceforge.net/packages/gsl.htm
(It would probably be best to get the "Complete package, except sources"
package. Trust me, you *need* the docs for this one.)
Wikipedia has some demo C code at the GSL page for calculating the Bessel
function:
http://en.wikipedia.org/wiki/GNU_Scientific_Library#Example
It looks like it's as simple as:
declare function gsl_sf_bessel_J0 lib "libgsl.dll" (x as double) as double
'...
dim x as double, y as double
x = 5
y = gsl_sf_bessel_J0(x)
(Note that I haven't actually *tried* using GSL under VBanything. The above
sample code might not work, YMMV, etc.)
One *important* note is that if you use GSL, the program (or whatever) that
calls it is automatically covered by the GPL... I think. (IANAL.) If you
don't want to GPL your code, you should probably find something else. (Not a
problem for *me*, but it's not *my code*.)
--
Stumble in your soul. Give yourself to me.
> --
> Stumble in your soul. Give yourself to me.
This signature is not appropriate to this newsfroup. Please stop
writing subliminal visual basic code. The human brain is not a
compiler.
--
William Gates
I'll stop when you show me where I'm writing subliminal code.
(The quoted sig is from the Lacuna Coil song "Comalies".)
(Good sigmonster. Have a cookie.)
--
01000111 01101111
01100110 01110101 01100011 01101011
01111001 01101111 01110101 01110010 01110011 01100101 01101100 01100110
Yes, newsfroups should not be polluted by instinctive proofreaders...