/*- * Copyright (c) 1982, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)ATAN.c 8.1 (Berkeley) 06/06/93"; #endif /* not lint */ #include 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 result; }