tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
cosh.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_COSH_HPP
4#define TETL_CMATH_COSH_HPP
5
6#include <etl/_3rd_party/gcem/gcem.hpp>
8
9namespace etl {
10
13
16[[nodiscard]] constexpr auto cosh(float arg) noexcept -> float { return etl::detail::gcem::cosh(arg); }
17[[nodiscard]] constexpr auto coshf(float arg) noexcept -> float { return etl::detail::gcem::cosh(arg); }
18[[nodiscard]] constexpr auto cosh(double arg) noexcept -> double { return etl::detail::gcem::cosh(arg); }
19[[nodiscard]] constexpr auto cosh(long double arg) noexcept -> long double { return etl::detail::gcem::cosh(arg); }
20[[nodiscard]] constexpr auto coshl(long double arg) noexcept -> long double { return etl::detail::gcem::cosh(arg); }
21[[nodiscard]] constexpr auto cosh(integral auto arg) noexcept -> double { return etl::detail::gcem::cosh(double(arg)); }
22
24
25} // namespace etl
26
27#endif // TETL_CMATH_COSH_HPP
The concept integral<T> is satisfied if and only if T is an integral type.
Definition integral.hpp:13
constexpr auto coshl(long double arg) noexcept -> long double
Computes the hyperbolic cosine of arg.
Definition cosh.hpp:20
constexpr auto coshf(float arg) noexcept -> float
Computes the hyperbolic cosine of arg.
Definition cosh.hpp:17
constexpr auto cosh(float arg) noexcept -> float
Computes the hyperbolic cosine of arg.
Definition cosh.hpp:16
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8