tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
sinh.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_CMATH_SINH_HPP
4#define TETL_CMATH_SINH_HPP
5
6#include <etl/_3rd_party/gcem/gcem.hpp>
8
9namespace etl {
10
14[[nodiscard]] constexpr auto sinh(float arg) noexcept -> float { return etl::detail::gcem::sinh(arg); }
15
19[[nodiscard]] constexpr auto sinhf(float arg) noexcept -> float { return etl::detail::gcem::sinh(arg); }
20
24[[nodiscard]] constexpr auto sinh(double arg) noexcept -> double { return etl::detail::gcem::sinh(arg); }
25
29[[nodiscard]] constexpr auto sinh(long double arg) noexcept -> long double { return etl::detail::gcem::sinh(arg); }
30
34[[nodiscard]] constexpr auto sinhl(long double arg) noexcept -> long double { return etl::detail::gcem::sinh(arg); }
35
39template <integral T>
40[[nodiscard]] constexpr auto sinh(T arg) noexcept -> double
41{
42 return etl::detail::gcem::sinh(static_cast<double>(arg));
43}
44
45} // namespace etl
46
47#endif // TETL_CMATH_SINH_HPP
constexpr auto sinh(float arg) noexcept -> float
Computes the hyperbolic sine of arg.
Definition sinh.hpp:14
constexpr auto sinhl(long double arg) noexcept -> long double
Computes the hyperbolic sine of arg.
Definition sinh.hpp:34
constexpr auto sinhf(float arg) noexcept -> float
Computes the hyperbolic sine of arg.
Definition sinh.hpp:19
constexpr auto arg(complex< T > const &z) noexcept -> T
Definition arg.hpp:15
Definition adjacent_find.hpp:8