template <typename SCALAR> SCALAR alogit(const SCALAR& a) { SCALAR p = 1.0/(1.0+exp(-a)); return p; } template df1b2variable alogit(const df1b2variable& a); -- John Sibert Emeritus Researcher, SOEST University of Hawaii at Manoa Honolulu HI (GMT-10) 808-294-3842 (mobile) Visit the ADMB project http://admb-project.org/