3#ifndef TETL_CMATH_ATAN_HPP
4#define TETL_CMATH_ATAN_HPP
8#include <etl/_3rd_party/gcem/gcem.hpp>
17inline constexpr struct atan {
18 template <
typename Float>
19 [[nodiscard]]
constexpr auto operator()(Float
arg)
const noexcept -> Float
22#if __has_builtin(__builtin_atanf)
23 if constexpr (etl::same_as<Float, float>) {
24 return __builtin_atanf(
arg);
27#if __has_builtin(__builtin_atan)
28 if constexpr (etl::same_as<Float, double>) {
29 return __builtin_atan(
arg);
33 return etl::detail::gcem::atan(
arg);
44[[nodiscard]]
constexpr auto atan(
float arg)
noexcept ->
float {
return etl::detail::atan(
arg); }
45[[nodiscard]]
constexpr auto atanf(
float arg)
noexcept ->
float {
return etl::detail::atan(
arg); }
46[[nodiscard]]
constexpr auto atan(
double arg)
noexcept ->
double {
return etl::detail::atan(
arg); }
47[[nodiscard]]
constexpr auto atan(
long double arg)
noexcept ->
long double {
return etl::detail::atan(
arg); }
48[[nodiscard]]
constexpr auto atanl(
long double arg)
noexcept ->
long double {
return etl::detail::atan(
arg); }
49[[nodiscard]]
constexpr auto atan(
integral auto arg)
noexcept ->
double {
return etl::detail::atan(
double(
arg)); }
The concept integral<T> is satisfied if and only if T is an integral type.
Definition integral.hpp:13
constexpr auto atan(float arg) noexcept -> float
Computes the principal value of the arc tangent of arg.
Definition atan.hpp:44
constexpr auto atanl(long double arg) noexcept -> long double
Computes the principal value of the arc tangent of arg.
Definition atan.hpp:48
constexpr auto atanf(float arg) noexcept -> float
Computes the principal value of the arc tangent of arg.
Definition atan.hpp:45
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8
constexpr auto is_constant_evaluated() noexcept -> bool
Detects whether the function call occurs within a constant-evaluated context. Returns true if the eva...
Definition is_constant_evaluated.hpp:16