std::log(std::complex) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::log(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex

Defined in header `<complex>` |  |
template< class T > complex<T> log( const complex<T>& z ); |  |

Computes complex natural (base e) logarithm of a complex value `z` with a branch cut along the negative real axis.

### [edit] Parameters

z | - | complex value

### [edit] Return value

Complex natural logarithm of `z`

### [edit] See also

log10(std::complex) | complex common logarithm with the branch cuts along the negative real axis (function template) [edit]
exp(std::complex) | complex base e exponential (function template) [edit]
log | computes natural (base e) logarithm (to base e) (ln(x)) (function) [edit]
log(std::valarray) | applies the function std::log to each element of valarray (function template) [edit]
C documentation for clog

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/complex/log&oldid=70896"