written by Kirk McKusick; add Berkeley specific copyright notice
[unix-history] / usr / src / usr.bin / pascal / libpc / LN.c
/*-
* Copyright (c) 1979 The Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
static char sccsid[] = "@(#)LN.c 1.6 (Berkeley) %G%";
#endif /* not lint */
#include <math.h>
double
LN(value)
double value;
{
if (value <= 0) {
ERROR("Non-positive argument of %e to ln\n", value);
}
return log(value);
}