projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bell 32V development
[unix-history]
/
usr
/
src
/
libm
/
asin.c
diff --git
a/usr/src/libm/asin.c
b/usr/src/libm/asin.c
index
cacb6b4
..
b742e95
100644
(file)
--- a/
usr/src/libm/asin.c
+++ b/
usr/src/libm/asin.c
@@
-39,7
+39,10
@@
asin(arg) double arg; {
double
acos(arg) double arg; {
double
acos(arg) double arg; {
- if((arg > 1.) || (arg < -1.)){
+ if(arg < 0)
+ arg = -arg;
+
+ if(arg > 1.){
errno = EDOM;
return(0.);
}
errno = EDOM;
return(0.);
}