4.3BSD/usr/src/usr.lib/libpc/LN.c

Compare this file to the similar file:
Show the results in this format:

/* Copyright (c) 1979 Regents of the University of California */

static char sccsid[] = "@(#)LN.c 1.4 6/10/81";

#include <math.h>

double
LN(value)

	double	value;
{
	if (value <= 0) {
		ERROR("Non-positive argument of %e to ln\n", value);
		return;
	}
	return log(value);
}