NAG Library for Python

The world’s largest collection of robust, documented, tested and maintained numerical algorithms.
Unrivalled Reliability
Algorithms that work for your applications. Flexible to the core.

If you need to add mathematical and statistical functionality to your applications or if you have complex mathematical problems to solve, the NAG Library for Python will provide a host of benefits. The NAG Library for Python provides a solid numerical foundation and serves diverse mathematical areas. It is expertly documented, maintained and supported and is regularly updated with cutting edge algorithmic capabilities.

Accelerating development of your algorithm reliant application

DemandTec was particularly attracted to NAG's Mixed Effect Regression, Correlation and Regression Analysis, Multivariate Methods and Time Series Analysis routines. Equally important for DemandTec was NAG's staff of algorithmic experts and software engineers who were not only available to help the DemandTec team with integration issues but were also capable of creating entirely new methods for incorporation into DemandTec's code. Learn more.

Speed up time to market / application development
Deliver competitive advantage
Thread Safety
Growth strategy
Product Details

The NAG Library for Python Technical Document (pdf).

Embedded pydoc documentation gives more details on how to use the package.

The documentation for the associated NAG C Library should be referred to for full descriptions of each individual function/algorithm in the package.

Archive Material

To see some more detail of how bindings can be auto generated you may want to read Calling the NAG Fortran Library from Python using F2PY.

Other useful articles can be found using the links below:

The NAG Library for Python, provided as a set of “Bindings” for use in conjunction with the NAG Library, gives access to the mathematical and statistical routines in the NAG Library. A technical document has been written to illustrate use of the Bindings - read it here. It includes an example "calling a NAG Optimization routine utilizing a callback function" using the NAG Library for Python Bindings

Services and Support

Outstanding service and support from our expert team
First line technical support when you need it

NAG’s Technical Support Service is provided by a team of specialists in numerical and statistical software development, in fact the NAG Library and Compiler development team share responsibility for the support of our software. We strongly believe that in order to effectively support complex software the technicians must be both experienced and understand the intricacies of the computational techniques. This conviction is reflected in the composition of the team most of whom are qualified to PhD level and have combined experience of software support in excess of 50 years.

NAG accuracy is quality assured

NAG provides accurate, documented, numerical software to help you make sure that your results are accurate. The validity of each NAG routine is tested for each platform that it is enabled for. Only when an implementation satisfies our stringent accuracy standards is it released. As a result, you can rely on the proven accuracy and reliability of NAG to give you the right answers. NAG is an ISO 9001 certified organization.

Reap the benefits of NAG expertise

The numerical codes that underpin the results from your software are not future proof. While the mathematics does not change, the codes have a limited lifespan because of new hardware structures, mathematical innovation and changes in application needs. NAG Numerical Services help you and your organization find and implement the optimum numerical computation solutions. NAG works with your team to impart skills and techniques that will help solve your numerical software problems.

Expert teaching and instruction from numerical experts

Your users, developers and managers can all benefit from NAG's highly regarded training courses. All of the training courses shown below have been delivered successfully either from NAG offices or at client premises. Training courses can be tailored to suit your particular requirements and be targeted to novice, intermediate or experienced levels. Specialized mentoring and development programs are also available for HPC managers.

Working in collaboration with industry and academia

NAG was founded on collaboration as an inter-University collaborative venture combining the talents of mathematicians and computer scientists. NAG has continued to collaborate with individuals and organizations over the past four decades and today longstanding and new partners are delivering tangible benefits to users and students all over the world.