4#ifndef TETL_COMPLEX_ARG_HPP
5#define TETL_COMPLEX_ARG_HPP
7#include <etl/_cmath/atan2.hpp>
8#include <etl/_complex/complex.hpp>
9#include <etl/_concepts/floating_point.hpp>
10#include <etl/_concepts/integral.hpp>
16[[nodiscard]]
constexpr auto arg(
complex<T>
const& z)
noexcept -> T
18 return etl::atan2(z.imag(), z.real());
22template <floating_point Float>
23[[nodiscard]]
constexpr auto arg(Float f)
noexcept ->
complex<Float>
29template <integral Integer>
30[[nodiscard]]
constexpr auto arg(Integer i)
noexcept ->
complex<
double>
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:16
constexpr auto arg(Float f) noexcept -> complex< Float >
Definition arg.hpp:23
constexpr auto arg(Integer i) noexcept -> complex< double >
Definition arg.hpp:30
Definition adjacent_find.hpp:9
A complex number.
Definition complex.hpp:20