xref: /csrg-svn/usr.bin/pascal/libpc/SQRT.c (revision 36533)
1 /* Copyright (c) 1979 Regents of the University of California */
2 
3 static char sccsid[] = "@(#)SQRT.c 1.4 01/09/89";
4 
5 #include <math.h>
6 
7 double
8 SQRT(value)
9 
10 	double	value;
11 {
12 	if (value < 0) {
13 		ERROR("Negative argument of %e to sqrt\n", value);
14 	}
15 	return sqrt(value);
16 }
17