x | cos(x) | invalid? |
---|---|---|
NAN | NAN | yes |
±∞ | NAN | yes |
x | sin(x) | invalid? |
---|---|---|
NAN | NAN | yes |
±0.0 | ±0.0 | no |
±∞ | NAN | yes |
x | tan(x) | invalid? |
---|---|---|
NAN | NAN | yes |
±0.0 | ±0.0 | no |
±∞ | NAN | yes |
x | acos(x) | invalid? |
---|---|---|
>1.0 | NAN | yes |
<-1.0 | NAN | yes |
NAN | NAN | yes |
x | asin(x) | invalid? |
---|---|---|
±0.0 | ±0.0 | no |
>1.0 | NAN | yes |
<-1.0 | NAN | yes |
x | atan(x) | invalid? |
---|---|---|
±0.0 | ±0.0 | no |
±∞ | NAN | yes |
y | x | atan(y, x) |
---|---|---|
NAN | anything | NAN |
anything | NAN | NAN |
±0.0 | >0.0 | ±0.0 |
±0.0 | +0.0 | ±0.0 |
±0.0 | <0.0 | ±π |
±0.0 | -0.0 | ±π |
>0.0 | ±0.0 | π/2 |
<0.0 | ±0.0 | -π/2 |
>0.0 | ∞ | ±0.0 |
±∞ | anything | ±π/2 |
>0.0 | -∞ | ±π |
±∞ | ∞ | ±π/4 |
±∞ | -∞ | ±3π/4 |
x | cosh(x) | invalid? |
---|---|---|
±∞ | ±0.0 | no |
x | sinh(x) | invalid? |
---|---|---|
±0.0 | ±0.0 | no |
±∞ | ±∞ | no |
x | tanh(x) | invalid? |
---|---|---|
±0.0 | ±0.0 | no |
±∞ | ±1.0 | no |
x | acosh(x) |
---|---|
NAN | NAN |
<1 | NAN |
1 | 0 |
+∞ | +∞ |
asinh(x) = log( x + sqrt( x*x + 1 )) // if x >= +0 asinh(x) = -log(-x + sqrt( x*x + 1 )) // if x <= -0
x | asinh(x) |
---|---|
NAN | NAN |
±0 | ±0 |
±∞ | ±∞ |
x | acosh(x) |
---|---|
NAN | NAN |
±0 | ±0 |
-∞ | -0 |
x | sqrt(x) | invalid? |
---|---|---|
-0.0 | -0.0 | no |
<0.0 | NAN | yes |
+∞ | +∞ | no |
x | cbrt(x) | invalid? |
---|---|---|
±0.0 | ±0.0 | no |
NAN | NAN | yes |
±∞ | ±∞ | no |
x | ex | +∞ | +∞ |
---|
x | ex-1 |
---|---|
±0.0 | ±0.0 | +∞ | +∞ |
x | exp2(x) | +∞ | +∞ | -∞ | +0.0 |
---|
x | log(x) | divide by 0? | invalid? |
---|---|---|---|
±0.0 | -∞ | yes | no |
<0.0 | NAN | no | yes |
+∞ | +∞ | no | no |
x | log1p(x) | divide by 0? | invalid? |
---|---|---|---|
±0.0 | ±0.0 | no | no |
-1.0 | -∞ | yes | no |
<-1.0 | NAN | no | yes |
+∞ | -∞ | no | no |
x | log2(x) | divide by 0? | invalid? |
---|---|---|---|
±0.0 | -∞ | yes | no |
<0.0 | NAN | no | yes |
+∞ | +∞ | no | no |
x | log10(x) | divide by 0? | invalid? |
---|---|---|---|
±0.0 | -∞ | yes | no |
<0.0 | NAN | no | yes |
+∞ | +∞ | no | no |
log( 0.0 + yi) = log(-y) + PI_2i // y<=-0.0 log(-0.0 + yi) = log(-y) - PI_2i // y<=-0.0
x | y | pow(x, y) | div 0 | invalid? |
---|---|---|---|---|
anything | ±0.0 | 1.0 | no | no |
|x| > 1 | +∞ | +∞ | no | no |
|x| < 1 | +∞ | +0.0 | no | no |
|x| > 1 | -∞ | +0.0 | no | no |
|x| < 1 | -∞ | +∞ | no | no |
+∞ | > 0.0 | +∞ | no | no |
+∞ | < 0.0 | +0.0 | no | no |
-∞ | odd integer > 0.0 | -∞ | no | no |
-∞ | > 0.0, not odd integer | +∞ | no | no |
-∞ | odd integer < 0.0 | -0.0 | no | no |
-∞ | < 0.0, not odd integer | +0.0 | no | no |
±1.0 | ±∞ | NAN | no | yes |
< 0.0 | finite, nonintegral | NAN | no | yes |
±0.0 | odd integer < 0.0 | ±∞ | yes | no |
±0.0 | < 0.0, not odd integer | +∞ | yes | no |
±0.0 | odd integer > 0.0 | ±0.0 | no | no |
±0.0 | > 0.0, not odd integer | +0.0 | no | no |
x | y | hypot(x, y) | invalid? |
---|---|---|---|
x | ±0.0 | |x| | no |
±∞ | y | +∞ | no |
±∞ | NAN | +∞ | no |
A | array of coefficients , , etc. |