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 valuesDefinition
1realIt is used to real part of complex
2imagIt is an imaginary part of complex
3absIt is an absolute value of complex
4argIt is a phase angle of complex
5normIt is a norm of complex
6conjIt is a complex conjugate
7polarIt is a complex from polar components
8projIt is a complex projection

Transcendentals overloads

Sr.No.OverloadsDefinition
1cosIt is a cosine of complex
2coshIt is a hyperbolic cosine of complex
3expIt is an exponential of complex
4logIt is a natural logarithm of complex
5log10It is a common logarithm of complex
6powIt is a power of complex
7sinIt is a sine of complex
8sinhIt is a hyperbolic sine of complex
9sqrtIt is a square root of complex
10tanIt is a tangent of complex
11tanhIt is a hyperbolic tangent of complex
12acos It is an arc cosine of complex
13acosh It is an arc hyperbolic cosine of complex
14asinIt is an arc sine of complex
15asinhIt is an arc hyperbolic sine of complex
16atan It is an arc tangent of complex
17atanhIt is an arc hyperbolic tangent of complex
Advertisements
close