move the text of error messages from ERROR to the functions
[unix-history] / usr / src / usr.bin / pascal / libpc / SQRT.c
CommitLineData
3594cd90
KM
1/* Copyright (c) 1979 Regents of the University of California */
2
86997b19 3static char sccsid[] = "@(#)SQRT.c 1.3 %G%";
3594cd90 4
fce84c6e 5#include <math.h>
3594cd90
KM
6
7double
8SQRT(value)
9
10 double value;
11{
fce84c6e 12 if (value < 0) {
86997b19 13 ERROR("Negative argument of %e to sqrt\n", value);
3594cd90
KM
14 return;
15 }
16 return sqrt(value);
17}