xref: /csrg-svn/usr.bin/pascal/libpc/SQRT.c (revision 62096)
140865Sbostic /*-
2*62096Sbostic  * Copyright (c) 1979, 1993
3*62096Sbostic  *	The Regents of the University of California.  All rights reserved.
440865Sbostic  *
540865Sbostic  * %sccs.include.redist.c%
640865Sbostic  */
71702Smckusick 
840865Sbostic #ifndef lint
9*62096Sbostic static char sccsid[] = "@(#)SQRT.c	8.1 (Berkeley) 06/06/93";
1040865Sbostic #endif /* not lint */
111702Smckusick 
121818Smckusic #include <math.h>
131702Smckusick 
141702Smckusick double
SQRT(value)151702Smckusick SQRT(value)
161702Smckusick 
171702Smckusick 	double	value;
181702Smckusick {
191818Smckusic 	if (value < 0) {
203869Smckusic 		ERROR("Negative argument of %e to sqrt\n", value);
211702Smckusick 	}
221702Smckusick 	return sqrt(value);
231702Smckusick }
24