Difference between revisions of "c/numeric/complex"
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
m (Shorten template names. Use {{lc}} where appropriate.) |
||
Line 12: | Line 12: | ||
If {{c|#pragma STDC CX_LIMITED_RANGE on}} is used, complex multiplication, division, and absolute value may use simplified mathematical formulas, despite the possibility of intermediate overflow. | If {{c|#pragma STDC CX_LIMITED_RANGE on}} is used, complex multiplication, division, and absolute value may use simplified mathematical formulas, despite the possibility of intermediate overflow. | ||
− | {{ | + | {{dsc begin}} |
− | {{ | + | {{dsc header | complex.h}} |
− | {{ | + | {{dsc h2 | Types}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list complex}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list Complex_I}} |
− | {{ | + | {{dsc h2 | The imaginary constant}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list imaginary}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list Imaginary_I}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list I}} |
− | {{ | + | {{dsc h2 | Manipulation}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list CMPLX}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list cimag}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list creal}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list carg}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list conj}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list cproj}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list cabs}} |
− | {{ | + | {{dsc h2 | Exponential functinos}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list cexp}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list clog}} |
− | {{ | + | {{dsc h2 | Power functions}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list cpow}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list csqrt}} |
− | {{ | + | {{dsc h2 | Trigonometric functions}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list cacos}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list casin}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list catan}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list ccos}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list csin}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list ctan}} |
− | {{ | + | {{dsc h2 | Hyperbolic functions}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list cacosh}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list casinh}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list catanh}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list ccosh}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list csinh}} |
− | {{ | + | {{dsc inc | c/numeric/complex/dcl list ctanh}} |
− | {{ | + | {{dsc end}} |
[[de:c/numeric/complex]] | [[de:c/numeric/complex]] |
Revision as of 17:35, 31 May 2013
The header <complex.h>
defines macros and declares functions that support complex number arithmetic. Complex values are values of type double complex
, float complex
, long double complex
,
If the macro constant __STDC_IEC_559_COMPLEX__
(C99) is defined by the compiler, in addition to the complex types, the imaginary types are also supported: double imaginary
, float imaginary
, and long double imaginary
. When a value of imaginary type is converted to a value of complex type, the resulting complex type has its real component set to zero. When a value of complex type is converted to a value of imaginary type, the real component is discarded.
Standard arithmetic operators +, -, *, / can be used with real, complex, and imaginary types in any combination.
If the macro constant __STDC_NO_COMPLEX__
(C11) is defined by the compiler, the header <complex.h>
and all of the names listed here are not provided.
If #pragma STDC CX_LIMITED_RANGE on is used, complex multiplication, division, and absolute value may use simplified mathematical formulas, despite the possibility of intermediate overflow.