1 /*- 2 * Copyright (c) 1982, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)SIN.c 8.1 (Berkeley) 06/06/93"; 10 #endif /* not lint */ 11 12 #include <math.h> 13 extern int errno; 14 15 double SIN(value)16SIN(value) 17 double value; 18 { 19 double result; 20 21 errno = 0; 22 result = sin(value); 23 if (errno != 0) { 24 ERROR("Cannot compute sin(%e)\n", value); 25 } 26 return result; 27 } 28