date and time created 83/02/11 15:45:08 by rrh
[unix-history] / usr / src / usr.bin / pascal / libpc / ATAN.c
/* Copyright (c) 1982 Regents of the University of California */
static char sccsid[] = "@(#)ATAN.c 1.1 %G%";
#include <math.h>
extern int errno;
double
ATAN(value)
double value;
{
double result;
errno = 0;
result = atan(value);
if (errno != 0) {
ERROR("Argument %e is out of the domain of atan\n", value);
return;
}
return result;
}