﻿PyNAG 0.16 (Mike Croucher - January 2010)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For more information concerning this package vist http://www.walkingrandomly.com/?page_id=1662
This is my first python package and so is rather rough around the edges.  Advice on how to improve it would be gratefully received.
PyNAG 0.16 has been tested with the following NAG C implementations although it may work on others
	* CLLUX08DGL (32bit)
	* CLL6A08DGL (64 bit)

Installation
~~~~~~~~~~~~
tar -xvzf ./PyNAG-0.16.tar.gz
cd PyNAG-0.16/src

edit the following line in __init__.py so that it points to your installation of the library.

C_libnag= ctypes.cdll.LoadLibrary("/opt/NAG/cllux08dgl/lib/libnagc_nag.so.8")

Move back into the root PyNAG directory:

cd ..

run the following command with administrator priviledges

python setup.py install

Changelog
~~~~~~~~~~
0.11 - 9th May 2009
-Modified e04abce.py to use NAGERR_DEFAULT
-Modified s14acce.py to use NAGERR_DEFAULT
-Added demonstration for s01bac

0.12 - 12th May 2009
-Fixed a problem with INIT_FAIL and SET_FAIL that was affecting 64bit machines
-Added e04bbc to PyNAG and wrote an example script based on NAG's C example program.
-Added several trivial example scripts using the S chapter - s10aac, s10abc, s10acc, s11aac, s11abc, s11acc, s14aac,s14adc

0.13 - May 2009 (30 functions supported)
-Added definition and example for e04dgc (minimizes an unconstrained nonlinear function of several variables using a pre-conditioned, limited memory quasi-Newton conjugate gradient method)
-Added initial definition for the NAG Complex structure
-Added definition and example code for s14afc (nag_complex_polygamma) and s14agc (nag_complex_log_gamma) to demonstrate usage of the Complex structure
-Added examples for s14aac, s14abc, s14acc
-x02ajc will be required for the example for s14bac (which I haven't added yet) so that was added too.  Since they were so easy to add, I also added x02ahc,x02ajc,x02akc,x02alc,x02amc,x02anc along with example scripts for each

0.14 - June 2009 (52 functions supported)
- Added example script for s14bace
- Added definitions for the 6 functions in the s15 subchapter
- Added definitions for the 14 functions in the s17 subchapter

0.15 - August 2009 (165 functions supported)
- Added definition and example for g01alc.  The example is the first one I have done that inputs a numpy array to the NAG library
- Added definitions for the 2 functions in A00.
- Added definitions for A02 chapter: a02bac, a02bbc, a02bcc
- Used a script to add 20 functions from chapter D01.  All of them have a void return type.
- Used a script to add 18 functions from chaper E01.  All of them have a void return type.  I think I have covered the whole subchapter.
- Used a script to add 24 functions from chaper E02.  All of them have a void return type.  I think I have covered the whole subchapter.
- Used a script to add 8 functions from chaper F01.  All of them have a void return type.  I think I have covered the whole subchapter.
- Used a script to add all 19 functions from sub-chapter S18.

0.16 - January 2010 (170 functions supported)
- Added definition and example for e04fcc (a comprehensive algorithm for finding an unconstrained minimum of a sum of squares of m nonlinear functions in n variables (m ≥ n). No derivatives are required.)
- Added definitions for the 4 functions in the S19 chapter
- Started the windows build.  
- Corrected the examples for s10aac,s11abc and s13adc.  They should only be called with one argument eg s10aac(x) rather than s10aac(x,ifail).  For some reason I got away with it in Linux but Windows is more picky.

