NAG Library for Java


The largest collection of numerical algorithms commercially available for Java programmers

Produced by experts for use in a variety of applications, the NAG Library has a global reputation for its excellence and, with over 1,700 fully documented and tested routines, is the largest collection of mathematical and statistical algorithms available.

Now at its 24th major release, the NAG Library contains algorithms which are powerful, reliable, flexible and ready for use from a wide range of operating systems, languages, environments and packages including Excel, Java, MATLAB®, .NET/C# and many more.

Library Contents

The key numerical and statistical capabilities of the Library are shown below. To learn more about the latest routines at Mark 24 follow this link. A complete list of the contents of the Library is available here.

Numerical facilities:

  • Optimization, both Local and Global
  • Linear, quadratic, integer and nonlinear programming and least squares problems
  • Ordinary and partial differential equations, and mesh generation
  • Solution of dense, banded and sparse linear equations and eigenvalue problems
  • Solution of linear and nonlinear least squares problems
  • Curve and surface fitting and interpolation
  • Special functions
  • Numerical integration and integral equations
  • Roots of nonlinear equations (including polynomials)
  • Option Pricing Formulae
  • Wavelet Transforms

Statistical facilities:

  • Random number generation
  • Simple calculations on statistical data
  • Correlation and regression analysis
  • Multivariate methods
  • Analysis of variance and contingency table analysis
  • Time series analysis
  • Nonparametric statistics

Regular Updates

To ensure that we meet your existing and future requirements, the library is regularly updated with new and enhanced algorithms for use in evolving business areas. If you have suggestions for new routines please contact us.

Expert Support

Subscription to our dedicated Technical Support Service includes automatic notification of updates and access to our domain experts who are there to assist you with your technical queries or difficulties.


Supporting Documentation

The Users' Note for the NAG Library for Java can be read here.

The NAG Fortran Library Manual will also help you use the NAG Library for Java

The complete NAG Fortran Library Manual, Mark 24 can be viewed on-line in the following formats:

  • HTML: The full manual available as HTML (using HTML5 features such as MathML and SVG in suitable browsers);
  • PDF: the same manual as above, consisting of many PDF files, may be browsed using PDF bookmarks or via the HTML table of contents pages;
  • Single file PDF: the manual as a single PDF file;
  • ZIP file: The archive as a ZIP file (152 MB);
  • Windows html help: Windows html help version as a single file;
    (Note: due to windows security restrictions the help file may not be read directly from the internet. Save a copy to your local disk, and then read the local copy. Also depending on the Windows version installed you may need to unblock files copied from the internet before they may be used (right click on the help file and select properties then select the "unblock" button).

Advice on viewing and navigating the first three formats can be found in the Online Documentation help document. You are strongly advised to read this document if you wish to try the HTML format.

The two single file formats are more compact than the formats using one file per routine, but of course are a larger download if you only need to view the documentation for a few routines.

The Library is organized into Chapters - each being documented with its own Introduction and Contents list followed by a comprehensive document for each function detailing its purpose, description, list of parameters and possible error exits. Example programs and results are also supplied. All examples are available on-line to facilitate their use as templates for the users' calling programs.

The error bulletin contains a list of errors or other problems which are known to exist in the NAG Fortran Library, along with suggested workarounds where possible.

The previous marks of the NAG Fortran Library Manual are still available: Mark 23, Mark 22 and Mark 21.

A full list of routines withdrawn from past marks of the Library has been provided with pointers to the recommended replacement routine.

Support documentation for the installation and use of each implementation of the NAG Fortran Library is available.

Product Availability

To use the NAG Library from Java you will need to download the NAG Library for Java wrappers from here.

You also need to have installed a copy of the NAG Fortran Library. Please make your selection from the available options below:

For 32 bit Windows
For 64 bit Windows
For 32 bit Linux
For 64 bit Linux



Website Feedback

If you would like a response from NAG please provide your e-mail address below.

(If you're a human, don't change the following field)
Your first name.
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.