...
Function | Domain | Range |
---|---|---|
| -1 <= x && x <= 1 | no |
| x != 0 || y != 0 | no |
| x >= 1 | no |
| -1 < x && x < 1 | no |
none | yes | |
| none | yes |
| none | yes |
| x > 0 | no |
| x > -1 | no |
| x != 0 | yes |
| none | yes |
| none | yes |
x > 0 || | yes | |
x >= 0 | no | |
| none | yes |
| (x == 0) || | yes |
| no | yes |
| y != 0 | no |
| none | yes |
| none | yes |
| none | yes |
...
Code Block | ||
---|---|---|
| ||
double x; double result; if (isless(x, 0)) { /* handle domain error */ } result = sqrt(x); |
Anchor | ||||
---|---|---|---|---|
|
cosh
...
(x), sinh
...
(x)
Noncompliant Code Example
...