| Main index | Section 3 | Options |
#include <complex.h>
| Argument | Return value | Comment |
-0 + I*0 | -∞ + I*π | Divide-by-zero exception |
| raised | ||
+0 + I*0 | -∞ + I*0 | Divide by zero exception |
| raised | ||
x + I*∞ | +∞ + I*π/2 | For finite x |
x + I*NaN | NaN + I*NaN | Optionally raises invalid |
| floating-point exception | ||
| for finite x | ||
-∞ + I*y | +∞ + I*π | For finite positive-signed y |
+∞ + I*y | +∞ + I*0 | For finite positive-signed y |
-∞ + I*∞ | +∞ + I*3π/4 | |
+∞ + I*∞ | +∞ + I*π/4 | |
±∞ + I*NaN | +∞ + I*NaN | |
NaN + I*y | NaN + I*NaN | Optionally raises invalid |
| floating-point exception | ||
| for finite y | ||
NaN + I*∞ | +∞ + I*NaN | |
NaN + I*NaN | NaN + I*NaN |
| CLOG (3) | June 6, 2018 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |