source:
CIVL/examples/complex/complex_funs.c@
478ca9e
| Last change on this file since 478ca9e was 478ca9e, checked in by , 2 weeks ago | |
|---|---|
|
|
| File size: 122 bytes | |
| Line | |
|---|---|
| 1 | #include <complex.h> |
| 2 | #include <assert.h> |
| 3 | |
| 4 | int main(void) { |
| 5 | double _Complex x = 3.0+4.0i; |
| 6 | assert(cabs(x) == 5.0); |
| 7 | |
| 8 | } |
| 9 | |
| 10 |
Note:
See TracBrowser
for help on using the repository browser.
