Complex.h: Difference between revisions

Content deleted Content added
Function declarations: explain cproj
add paragraph on C++
Line 2:
{{C Standard library}}
 
'''complex.h''' is a [[header file]] in the [[C standard library|standard library]] of the [[C programming language]] that defines functionality for [[complex arithmetic]]. These functions use the built-in type <code>complex</code> which was introduced with the [[C99]] revision of C.
 
This header should not be confused with the [[C++ standard library]] header <code>&lt;complex&gt;</code>, which implements complex numbers in a completely different way (as a template class, <code>complex&lt;T&gt;</code>).
==Function declarations==
 
==Functions==
Each function declared in <code>complex.h</code> has three versions, each of which works with a different floating-point type (<code>double</code>, <code>float</code> and <code>long{{nbsp}}double</code>). Only the <code>double</code> version of each function is listed here; to use the <code>float</code> (or <code>long{{nbsp}}double</code>) version, append an <code>f</code> (or an <code>l<code>, respectively) to the function's name.