1ab0b9960Sbostic /*- 2*33717ddfSbostic * Copyright (c) 1979, 1993 3*33717ddfSbostic * The Regents of the University of California. All rights reserved. 4ab0b9960Sbostic * 5ab0b9960Sbostic * %sccs.include.redist.c% 6ab0b9960Sbostic */ 71946325eSmckusick 8ab0b9960Sbostic #ifndef lint 9*33717ddfSbostic static char sccsid[] = "@(#)LN.c 8.1 (Berkeley) 06/06/93"; 10ab0b9960Sbostic #endif /* not lint */ 111946325eSmckusick 12997dfbf1Smckusic #include <math.h> 131946325eSmckusick 141946325eSmckusick double LN(value)151946325eSmckusickLN(value) 161946325eSmckusick 171946325eSmckusick double value; 181946325eSmckusick { 191946325eSmckusick if (value <= 0) { 2050d645dbSmckusic ERROR("Non-positive argument of %e to ln\n", value); 211946325eSmckusick } 221946325eSmckusick return log(value); 231946325eSmckusick } 24