Check works right to add reference from docs to replicate simple free function C/ FORTRAN style call using NAG library as example.