From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/c/numeric%2Fcomplex%2Fimaginary.html | 47 ---------------------------- 1 file changed, 47 deletions(-) delete mode 100644 devdocs/c/numeric%2Fcomplex%2Fimaginary.html (limited to 'devdocs/c/numeric%2Fcomplex%2Fimaginary.html') diff --git a/devdocs/c/numeric%2Fcomplex%2Fimaginary.html b/devdocs/c/numeric%2Fcomplex%2Fimaginary.html deleted file mode 100644 index 5b1db5b0..00000000 --- a/devdocs/c/numeric%2Fcomplex%2Fimaginary.html +++ /dev/null @@ -1,47 +0,0 @@ -

imaginary

Defined in header <complex.h>
#define imaginary _Imaginary
-
(since C99)

This macro expands to the keyword _Imaginary.

-

This is a convenience macro that makes it possible to use float imaginary, double imaginary, and long double imaginary as an alternative way to write the three pure imaginary C types float _Imaginary, double _Imaginary, and long double _Imaginary

-

As with any pure imaginary number support in C, this macro is only defined if the imaginary numbers are supported.

- - - - -

A compiler that defines __STDC_IEC_559_COMPLEX__ is not required to support imaginary numbers. POSIX recommends checking if the macro _Imaginary_I is defined to identify imaginary number support.

-
-(since C99)
(until C11) -

Imaginary numbers are supported if __STDC_IEC_559_COMPLEX__ is defined.

-
(since C11)

Notes

Programs are allowed to undefine and perhaps redefine the imaginary macro.

-

Example

#include <stdio.h>
-#include <complex.h>
- 
-int main(void)
-{
-    double imaginary i = -2.0*I; // pure imaginary
-    double f = 1.0; // pure real
-    double complex z = f + i; // complex number
-    printf("z = %.1f%+.1fi\n", creal(z), cimag(z));
-}

Output:

-
z = 1.0-2.0i

References

See also

-
-
(C99)
complex type macro
(keyword macro)
-

- © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
- https://en.cppreference.com/w/c/numeric/complex/imaginary -

-
-- cgit v1.2.3