Various C programs, adapted from FORTRAN