/*- * Copyright (c) 1982, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)COS.c 8.1 (Berkeley) 06/06/93"; #endif /* not lint */ #include extern int errno; double COS(value) double value; { double result; errno = 0; result = cos(value); if (errno != 0) { ERROR("Cannot compute cos(%e)\n", value); } return result; }