The C Standard Library
The C++ Standard Library
The C++ STL Library
C++ Programming Resources
Selected Reading
The C++ Standard Library
- C++ Library - <valarray>
- C++ Library - <utility>
- C++ Library - <typeinfo>
- C++ Library - <tuple>
- C++ Library - <thread>
- C++ Library - <string>
- C++ Library - <stdexcept>
- C++ Library - <regex>
- C++ Library - <numeric>
- C++ Library - <new>
- C++ Library - <memory>
- C++ Library - <locale>
- C++ Library - <limits>
- C++ Library - <functional>
- C++ Library - <exception>
- C++ Library - <complex>
- C++ Library - <atomic>
- C++ Library - <streambuf>
- C++ Library - <sstream>
- C++ Library - <ostream>
- C++ Library - <istream>
- C++ Library - <iostream>
- C++ Library - <iosfwd>
- C++ Library - <ios>
- C++ Library - <iomanip>
- C++ Library - <fstream>
- C++ Library - Home
The C++ STL Library
- C++ Library - <iterator>
- C++ Library - <algorithm>
- C++ Library - <vector>
- C++ Library - <unordered_set>
- C++ Library - <unordered_map>
- C++ Library - <stack>
- C++ Library - <set>
- C++ Library - <queue>
- C++ Library - <map>
- C++ Library - <list>
- C++ Library - <forward_list>
- C++ Library - <deque>
- C++ Library - <bitset>
- C++ Library - <array>
C++ Programming Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
C++ Library - <complex>
C++ Library - <complex>
Introduction
It implements the complex class to contain complex numbers in cartesian form and several functions and overloads to operate with them.
Declaration
Following is the declaration for std::complex.
template< class T > class complex;
Parameters
T − Type of both the real and imaginary components of the complex number.
Functions
Sr.No. | Complex values | Definition |
---|---|---|
1 | It is used to real part of complex | |
2 | It is an imaginary part of complex | |
3 | It is an absolute value of complex | |
4 | It is a phase angle of complex | |
5 | It is a norm of complex | |
6 | It is a complex conjugate | |
7 | It is a complex from polar components | |
8 | It is a complex projection |
Transcendentals overloads
Sr.No. | Overloads | Definition |
---|---|---|
1 | It is a cosine of complex | |
2 | It is a hyperbopc cosine of complex | |
3 | It is an exponential of complex | |
4 | It is a natural logarithm of complex | |
5 | It is a common logarithm of complex | |
6 | It is a power of complex | |
7 | It is a sine of complex | |
8 | It is a hyperbopc sine of complex | |
9 | It is a square root of complex | |
10 | It is a tangent of complex | |
11 | It is a hyperbopc tangent of complex | |
12 | It is an arc cosine of complex | |
13 | It is an arc hyperbopc cosine of complex | |
14 | It is an arc sine of complex | |
15 | It is an arc hyperbopc sine of complex | |
16 | It is an arc tangent of complex | |
17 | It is an arc hyperbopc tangent of complex |