The NAG Numerical Library is a software product developed and sold by The Numerical Algorithms Group Ltd. It is a software library of numerical analysis routines, containing more than 1,900 mathematical and statistical algorithms. Areas covered by the library include linear algebra, optimization, quadrature, the solution of ordinary and partial differential equations, regression analysis, and time series analysis.
Users of the NAG Library call its routines from within their applications in order to incorporate its mathematical or statistical functionality and to solve numerical problems - for example, finding the minimum or maximum of a function, fitting a curve or surface to data, or solving a differential equation. The NAG Library [1] can be accessed from a variety of languages and environments such as C/C++,[2] Fortran,[3] Python,[4] AD,[5] MATLAB,[6] Java [7] and .NET.[8] The main supported systems are currently Windows, Linux and macOS running on x86-64 architectures; 32-bit Windows support is being phased out. Some NAG mathematical optimization solvers are accessible via the optimization modelling suite.[9]