Updated generic log1p implemented based on SLATEC code.