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// SPDX-FileCopyrightText: Copyright (C) 2021 Tobias Hienzsch
3
4#ifndef TETL_CMATH_COSH_HPP
5#define TETL_CMATH_COSH_HPP
6
7#include <etl/_3rd_party/gcem/gcem.hpp>
8#include <etl/_concepts/integral.hpp>
9
10namespace etl {
11
12/// \ingroup cmath
13/// @{
14
15/// Computes the hyperbolic cosine of arg
16/// \details https://en.cppreference.com/w/cpp/numeric/math/cosh
17[[nodiscard]] constexpr auto cosh(float arg) noexcept -> float
18{
19 return etl::detail::gcem::cosh(arg);
20}
21[[nodiscard]] constexpr auto coshf(float arg) noexcept -> float
22{
23 return etl::detail::gcem::cosh(arg);
24}
25[[nodiscard]] constexpr auto cosh(double arg) noexcept -> double
26{
27 return etl::detail::gcem::cosh(arg);
28}
29[[nodiscard]] constexpr auto cosh(long double arg) noexcept -> long double
30{
31 return etl::detail::gcem::cosh(arg);
32}
33[[nodiscard]] constexpr auto coshl(long double arg) noexcept -> long double
34{
35 return etl::detail::gcem::cosh(arg);
36}
37[[nodiscard]] constexpr auto cosh(integral auto arg) noexcept -> double
38{
39 return etl::detail::gcem::cosh(double(arg));
40}
41
42/// @}
43
44} // namespace etl
45
46#endif // TETL_CMATH_COSH_HPP
constexpr auto coshl(long double arg) noexcept -> long double
Definition cosh.hpp:33
constexpr auto coshf(float arg) noexcept -> float
Definition cosh.hpp:21
constexpr auto cosh(double arg) noexcept -> double
Definition cosh.hpp:25
constexpr auto cosh(float arg) noexcept -> float
Definition cosh.hpp:17
constexpr auto cosh(long double arg) noexcept -> long double
Definition cosh.hpp:29
Definition adjacent_find.hpp:9