NSWC library of mathematical subroutines. The NSWC library is a library of general purpose Fortran subroutines that provide a basic computational capability for a variety of mathematical activities. Emphasis has been placed on the transportability of the codes. Subroutines are available in the following areas: elementary operations, geometry, special functions, polynomials, vectors, matrices, large dense systems of linear equations, banded matrices, sparse matrices, eigenvalues and eigenvectors, l1 solution of linear equations, least-squares solution of linear equations, optimization, transforms, approximation of functions, curve fitting, surface fitting, manifold fitting, numerical integration, integral equations, ordinary differential equations, partial differential equations, and random number generation.