projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
date and time created 91/04/16 14:59:05 by bostic
[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
);
}