needs typees.h
[unix-history] / usr / src / usr.bin / pascal / libpc / LN.c
CommitLineData
0d78ca85 1/*-
8db0b741
KB
2 * Copyright (c) 1979, 1993
3 * The Regents of the University of California. All rights reserved.
0d78ca85
KB
4 *
5 * %sccs.include.redist.c%
6 */
c4c6b9d5 7
0d78ca85 8#ifndef lint
8db0b741 9static char sccsid[] = "@(#)LN.c 8.1 (Berkeley) %G%";
0d78ca85 10#endif /* not lint */
c4c6b9d5 11
b8cbc6b2 12#include <math.h>
c4c6b9d5
KM
13
14double
15LN(value)
16
17 double value;
18{
19 if (value <= 0) {
86997b19 20 ERROR("Non-positive argument of %e to ln\n", value);
c4c6b9d5
KM
21 }
22 return log(value);
23}