
- C++ Library - Home
- C++ Library - <fstream>
- C++ Library - <iomanip>
- C++ Library - <ios>
- C++ Library - <iosfwd>
- C++ Library - <iostream>
- C++ Library - <istream>
- C++ Library - <ostream>
- C++ Library - <sstream>
- C++ Library - <streambuf>
- C++ Library - <atomic>
- C++ Library - <complex>
- C++ Library - <exception>
- C++ Library - <functional>
- C++ Library - <limits>
- C++ Library - <locale>
- C++ Library - <memory>
- C++ Library - <new>
- C++ Library - <numeric>
- C++ Library - <regex>
- C++ Library - <stdexcept>
- C++ Library - <string>
- C++ Library - <thread>
- C++ Library - <tuple>
- C++ Library - <typeinfo>
- C++ Library - <utility>
- C++ Library - <valarray>
- The C++ STL Library
- C++ Library - <array>
- C++ Library - <bitset>
- C++ Library - <deque>
- C++ Library - <forward_list>
- C++ Library - <list>
- C++ Library - <map>
- C++ Library - <multimap>
- C++ Library - <queue>
- C++ Library - <priority_queue>
- C++ Library - <set>
- C++ Library - <stack>
- C++ Library - <unordered_map>
- C++ Library - <unordered_set>
- C++ Library - <vector>
- C++ Library - <algorithm>
- C++ Library - <iterator>
- The C++ Advanced Library
- C++ Library - <any>
- C++ Library - <barrier>
- C++ Library - <bit>
- C++ Library - <chrono>
- C++ Library - <cinttypes>
- C++ Library - <clocale>
- C++ Library - <condition_variable>
- C++ Library - <coroutine>
- C++ Library - <cstdlib>
- C++ Library - <cstring>
- C++ Library - <cuchar>
- C++ Library - <charconv>
- C++ Library - <cfenv>
- C++ Library - <cmath>
- C++ Library - <ccomplex>
- C++ Library - <expected>
- C++ Library - <format>
- C++ Library - <future>
- C++ Library - <flat_set>
- C++ Library - <flat_map>
- C++ Library - <filesystem>
- C++ Library - <generator>
- C++ Library - <initializer_list>
- C++ Library - <latch>
- C++ Library - <memory_resource>
- C++ Library - <mutex>
- C++ Library - <mdspan>
- C++ Library - <optional>
- C++ Library - <print>
- C++ Library - <ratio>
- C++ Library - <scoped_allocator>
- C++ Library - <semaphore>
- C++ Library - <source_location>
- C++ Library - <span>
- C++ Library - <spanstream>
- C++ Library - <stacktrace>
- C++ Library - <stop_token>
- C++ Library - <syncstream>
- C++ Library - <system_error>
- C++ Library - <string_view>
- C++ Library - <stdatomic>
- C++ Library - <variant>
- C++ STL Library Cheat Sheet
- C++ STL - Cheat Sheet
- C++ Programming Resources
- C++ Programming Tutorial
- C++ Useful Resources
- C++ Discussion
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 | real | It is used to real part of complex |
2 | imag | It is an imaginary part of complex |
3 | abs | It is an absolute value of complex |
4 | arg | It is a phase angle of complex |
5 | norm | It is a norm of complex |
6 | conj | It is a complex conjugate |
7 | polar | It is a complex from polar components |
8 | proj | It is a complex projection |
Transcendentals overloads
Sr.No. | Overloads | Definition |
---|---|---|
1 | cos | It is a cosine of complex |
2 | cosh | It is a hyperbolic cosine of complex |
3 | exp | It is an exponential of complex |
4 | log | It is a natural logarithm of complex |
5 | log10 | It is a common logarithm of complex |
6 | pow | It is a power of complex |
7 | sin | It is a sine of complex |
8 | sinh | It is a hyperbolic sine of complex |
9 | sqrt | It is a square root of complex |
10 | tan | It is a tangent of complex |
11 | tanh | It is a hyperbolic tangent of complex |
12 | acos | It is an arc cosine of complex |
13 | acosh | It is an arc hyperbolic cosine of complex |
14 | asin | It is an arc sine of complex |
15 | asinh | It is an arc hyperbolic sine of complex |
16 | atan | It is an arc tangent of complex |
17 | atanh | It is an arc hyperbolic tangent of complex |
Advertisements