 |
| | Numerit and the GNU Scientific Library (GSL) | | | |
The GNU Scientific Library
(GSL) is a numerical library that provides a wide range of mathematical routines and includes over 1000 functions in total.
It is free under the GNU General Public License.
Numerit's built-in dynamic-link library (DLL) interface provides the easiest way to use GSL.
Although GSL was written in C, you don't have to be a C programmer in order to use it. All you need is a copy of the GSL DLL (see below how you can easily get one)
and a simple declaration in your Numerit program for each GSL function you want to call.
This declaration informs Numerit about the function's name and the number and types of its parameters and return value.
To make life even easier and help you use the GNU Scientific Library in the high-level Numerit programming environment right away, we have prepared a
special interface package.
| | The Numerit-GSL Interface Package | | | |
The Numerit-GSL Interface Package includes:
- An interface module with more than 1400 Numerit declarations of GSL functions and more than 100 Numerit declarations of GSL variables
that give you instant access to GSL from Numerit. The declarations are divided into categories according to
the GSL Reference Manual. These categories include:
Polynomial evaluation and roots
Special functions
Linear Algebra
Eigensystems
Fast Fourier Transforms
Quadratures
Random Numbers
Quasi-Random Sequences
Statistics
Histograms
Monte-Carlo Integration
Simulated Annealing
Differential Equations
Interpolation
Numerical Differentiation
Chebyshev Approximation
Discrete Hankel Transforms
Root Finding
Minimization
Least-Squares Fitting
Discrete Wavelet Transforms
And more...
|
|
- A collection of Numerit commented example programs that cover all the topics in the GSL Reference Manual.
Besides demonstrating the use of GSL functions, these programs can be used as starting points to your own programs.
- A collection of DLLs with utilities that allow you to access GSL data objects that are not supported by Numerit.
For example: copy GSL vectors and matrices from/to Numerit vectors and matrices, access the GSL integration workspace
structure, copy null-terminated strings to Numerit strings, etc. Besides the usefulness of the utilities themselves,
they can be used as examples to creating your own DLLs, as they are delivered with full source code and instructions how to
compile them to DLLs using the free
Borland C++ Compiler.
- A DLL that provides a simple but powerful mechanism to allow handling of GSL errors in Numerit.
With this mechanism any error that is issued by a GSL function invokes Numerit's error handler.
Important Note:
This package includes the Numerit interface to GSL.
It does not include the GSL source code nor a compiled version of it.
The GSL source code can be downloaded for free under the GNU General Public License
from gnu.org or
from sourceforge.net.
The compiled version of GSL (the DLL) can be downloaded for free
from sourceforge.net
(see details below: "How to get the GSL DLL").
| | How to get the Numerit-GSL Interface Package | | | |
The Numerit-GSL Interface Package costs $30. It can be ordered by clicking the link below.
After you complete your order you will receive an e-mail with a link to download the package.
Important Notes (read before you order):
- You should obtain a copy of the GSL DLL before you can use the Numerit-GSL Interface Package (see below how to do that).
Without a copy of the GSL DLL the Numerit-GSL interface won't be of much use to you.
- Some GSL functions are not supported by the Numerit-GSL interface module:
click here for details.
- The Numerit-GSL interface module does not include Numerit declarations for the routines in the BLAS library (these functions are actually not
part of GSL but are used by it for low-level vector/matrix operations).
- You need a registered copy of Numerit Pro (see Download and Ordering).
If you are already a registered user you must update your copy to the latest version (free).
- The Numerit-GSL interface module is intended to be used with Numerit Pro.
If you are a user of the standard edition of Numerit, you can still use it,
but you'll have to copy it (or parts of it) to each program that needs to call GSL functions.
- The Numerit-GSL interface has been tested with GSL version 1.8.
- The Numerit-GSL Interface Package comes as a zip file. You must be able to open zip
files in order to extract the package's files.
- The Numerit-GSL Interface Package User's Guide comes as a PDF file and requires the
Adobe Reader. If you don't already have the Adobe Reader you can get if for free from
the Adobe Reader Download Page.
You can download the User's Guide from the following link (it also comes with the package):
The Numerit-GSL Interface Package User's Guide.
- Please read The Numerit-GSL Interface Package License Agreement.
The best way to get the GSL DLL is to download the free GSL package
from SourceForge.net.
The DLL is found in the Binaries component and
the manual in the Documentation component.
These components come as zip files so you need to open the zip files and extract the files that you need.
From the Binaries file (gsl-1.8-bin.zip) you need to extract two DLLs: libgsl.dll and libgslcblas.dll.
From the Documentation file (gsl-1.8-doc.zip) you should extract the Reference Manual either as a PDF file (gsl-ref.pdf), or as
a Help file (gsl-ref.chm or gsl-ref.hlp), or as a HTML file (gsl-ref.html).
You can download the Numerit-GSL-Demo package that includes compiled versions of
some of the example programs that come with the Numerit-GSL Interface Package
(the source code of these programs comes with the full package).
The programs in the demo package are in ".nex" format (Numerit executable)
and require NumRun - the free "Numerit Executor". Running these programs with NumRun
will show you the output of the example programs (should match the results of the
examples that are presented in the GSL Reference Manual). You will also need the GSL DLL.
To install and run the demo you should do the following:
- Download and install NumRun (1.06 MB).
- Download the GSL Binaries file.
Extract the two DLL files - libgsl.dll and libgslcblas.dll to any directory of your choice.
You can also download the GSL Documentation file that contains the GSL Reference Manual.
- Download Numerit-GSL-Demo.zip and extract its
content (.nex files and DLLs) to the same directory as the GSL DLLs.
- Launch NumRun, then open any Numerit program (.nex) and click the Run button (or press F9).
|