...
Code Block | ||
---|---|---|
| ||
float x, y, result; if ( fpclassify(x) == FP_ZERO0.f) && fpclassify(y) == FP_ZERO) 0.f) ) { /* handle domain error */ } result = atan2(y, x); |
...
Code Block | ||
---|---|---|
| ||
float result, x; if (islessequal(x, 0)) { /* handle domain and range errors */ } result = log(x); |
...
Code Block | ||
---|---|---|
| ||
float x, y, result; if (fpclassify (x) == FP_ZERO0.f) && islessequal(y, 0) ) { /* handle domain error condition */ } result = pow(x, y); |
...
Code Block | ||
---|---|---|
| ||
float x, result;
if (isless(x, 0)){
/* handle domain error */
}
result = sqrt(x);
|
...