Namespaces
Variants
Views
Actions

Difference between revisions of "c/numeric/complex"

From cppreference.com
< c‎ | numeric
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.
  
{{dcl list begin}}
+
{{dsc begin}}
{{dcl list header | complex.h}}
+
{{dsc header | complex.h}}
{{dcl list h2 | Types}}
+
{{dsc h2 | Types}}
{{dcl list template | c/numeric/complex/dcl list complex}}
+
{{dsc inc | c/numeric/complex/dcl list complex}}
{{dcl list template | c/numeric/complex/dcl list Complex_I}}
+
{{dsc inc | c/numeric/complex/dcl list Complex_I}}
  
{{dcl list h2 | The imaginary constant}}
+
{{dsc h2 | The imaginary constant}}
{{dcl list template | c/numeric/complex/dcl list imaginary}}
+
{{dsc inc | c/numeric/complex/dcl list imaginary}}
{{dcl list template | c/numeric/complex/dcl list Imaginary_I}}
+
{{dsc inc | c/numeric/complex/dcl list Imaginary_I}}
{{dcl list template | c/numeric/complex/dcl list I}}
+
{{dsc inc | c/numeric/complex/dcl list I}}
  
{{dcl list h2 | Manipulation}}
+
{{dsc h2 | Manipulation}}
{{dcl list template | c/numeric/complex/dcl list CMPLX}}
+
{{dsc inc | c/numeric/complex/dcl list CMPLX}}
{{dcl list template | c/numeric/complex/dcl list cimag}}
+
{{dsc inc | c/numeric/complex/dcl list cimag}}
{{dcl list template | c/numeric/complex/dcl list creal}}
+
{{dsc inc | c/numeric/complex/dcl list creal}}
{{dcl list template | c/numeric/complex/dcl list carg}}
+
{{dsc inc | c/numeric/complex/dcl list carg}}
{{dcl list template | c/numeric/complex/dcl list conj}}
+
{{dsc inc | c/numeric/complex/dcl list conj}}
{{dcl list template | c/numeric/complex/dcl list cproj}}
+
{{dsc inc | c/numeric/complex/dcl list cproj}}
{{dcl list template | c/numeric/complex/dcl list cabs}}
+
{{dsc inc | c/numeric/complex/dcl list cabs}}
  
{{dcl list h2 | Exponential functinos}}
+
{{dsc h2 | Exponential functinos}}
{{dcl list template | c/numeric/complex/dcl list cexp}}
+
{{dsc inc | c/numeric/complex/dcl list cexp}}
{{dcl list template | c/numeric/complex/dcl list clog}}
+
{{dsc inc | c/numeric/complex/dcl list clog}}
  
{{dcl list h2 | Power functions}}
+
{{dsc h2 | Power functions}}
{{dcl list template | c/numeric/complex/dcl list cpow}}
+
{{dsc inc | c/numeric/complex/dcl list cpow}}
{{dcl list template | c/numeric/complex/dcl list csqrt}}
+
{{dsc inc | c/numeric/complex/dcl list csqrt}}
  
{{dcl list h2 | Trigonometric functions}}
+
{{dsc h2 | Trigonometric functions}}
{{dcl list template | c/numeric/complex/dcl list cacos}}
+
{{dsc inc | c/numeric/complex/dcl list cacos}}
{{dcl list template | c/numeric/complex/dcl list casin}}
+
{{dsc inc | c/numeric/complex/dcl list casin}}
{{dcl list template | c/numeric/complex/dcl list catan}}
+
{{dsc inc | c/numeric/complex/dcl list catan}}
{{dcl list template | c/numeric/complex/dcl list ccos}}
+
{{dsc inc | c/numeric/complex/dcl list ccos}}
{{dcl list template | c/numeric/complex/dcl list csin}}
+
{{dsc inc | c/numeric/complex/dcl list csin}}
{{dcl list template | c/numeric/complex/dcl list ctan}}
+
{{dsc inc | c/numeric/complex/dcl list ctan}}
  
{{dcl list h2 | Hyperbolic functions}}
+
{{dsc h2 | Hyperbolic functions}}
{{dcl list template | c/numeric/complex/dcl list cacosh}}
+
{{dsc inc | c/numeric/complex/dcl list cacosh}}
{{dcl list template | c/numeric/complex/dcl list casinh}}
+
{{dsc inc | c/numeric/complex/dcl list casinh}}
{{dcl list template | c/numeric/complex/dcl list catanh}}
+
{{dsc inc | c/numeric/complex/dcl list catanh}}
{{dcl list template | c/numeric/complex/dcl list ccosh}}
+
{{dsc inc | c/numeric/complex/dcl list ccosh}}
{{dcl list template | c/numeric/complex/dcl list csinh}}
+
{{dsc inc | c/numeric/complex/dcl list csinh}}
{{dcl list template | c/numeric/complex/dcl list ctanh}}
+
{{dsc inc | c/numeric/complex/dcl list ctanh}}
{{dcl list end}}
+
{{dsc end}}
  
 
[[de:c/numeric/complex]]
 
[[de:c/numeric/complex]]

Revision as of 17:35, 31 May 2013

 
 
 
Complex number arithmetic
Types and the imaginary constant
(C99)
(C99)    
(C11)
(C99)
Manipulation
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)
Power and exponential functions
(C99)
(C99)
(C99)
(C99)
Trigonometric functions
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)
Hyperbolic functions
(C99)
(C99)
(C99)
(C99)
(C99)
(C99)
 

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.

Template:c/numeric/complex/dcl list complexTemplate:c/numeric/complex/dcl list Complex ITemplate:c/numeric/complex/dcl list imaginaryTemplate:c/numeric/complex/dcl list Imaginary ITemplate:c/numeric/complex/dcl list ITemplate:c/numeric/complex/dcl list CMPLXTemplate:c/numeric/complex/dcl list cimagTemplate:c/numeric/complex/dcl list crealTemplate:c/numeric/complex/dcl list cargTemplate:c/numeric/complex/dcl list conjTemplate:c/numeric/complex/dcl list cprojTemplate:c/numeric/complex/dcl list cabsTemplate:c/numeric/complex/dcl list cexpTemplate:c/numeric/complex/dcl list clogTemplate:c/numeric/complex/dcl list cpowTemplate:c/numeric/complex/dcl list csqrtTemplate:c/numeric/complex/dcl list cacosTemplate:c/numeric/complex/dcl list casinTemplate:c/numeric/complex/dcl list catanTemplate:c/numeric/complex/dcl list ccosTemplate:c/numeric/complex/dcl list csinTemplate:c/numeric/complex/dcl list ctanTemplate:c/numeric/complex/dcl list cacoshTemplate:c/numeric/complex/dcl list casinhTemplate:c/numeric/complex/dcl list catanhTemplate:c/numeric/complex/dcl list ccoshTemplate:c/numeric/complex/dcl list csinhTemplate:c/numeric/complex/dcl list ctanh
Defined in header <complex.h>

Contents

Types
The imaginary constant
Manipulation
Exponential functinos
Power functions
Trigonometric functions
Hyperbolic functions