date and time created 82/02/08 20:33:04 by mckusick
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 9 Feb 1982 12:33:04 +0000 (04:33 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 9 Feb 1982 12:33:04 +0000 (04:33 -0800)
SCCS-vsn: usr.bin/pascal/libpc/SIN.c 1.1

usr/src/usr.bin/pascal/libpc/SIN.c [new file with mode: 0644]

diff --git a/usr/src/usr.bin/pascal/libpc/SIN.c b/usr/src/usr.bin/pascal/libpc/SIN.c
new file mode 100644 (file)
index 0000000..3df8b2e
--- /dev/null
@@ -0,0 +1,21 @@
+/* Copyright (c) 1982 Regents of the University of California */
+
+static char sccsid[] = "@(#)SIN.c 1.1 %G%";
+
+#include <math.h>
+extern int errno;
+
+double
+SIN(value)
+       double  value;
+{
+       double result;
+
+       errno = 0;
+       result = sin(value);
+       if (errno != 0) {
+               ERROR("Cannot compute sin(%e)\n", value);
+               return;
+       }
+       return result;
+}