tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
beta.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_BETA_HPP
5#define TETL_CMATH_BETA_HPP
6
7#include <etl/_3rd_party/gcem/gcem.hpp>
8
9namespace etl {
10
11/// \ingroup cmath
12/// @{
13
14/// Computes the beta function of x and y.
15/// \details https://en.cppreference.com/w/cpp/numeric/special_functions/beta
16[[nodiscard]] constexpr auto beta(double x, double y) noexcept -> double
17{
18 return etl::detail::gcem::beta(x, y);
19}
20[[nodiscard]] constexpr auto betaf(float x, float y) noexcept -> float
21{
22 return etl::detail::gcem::beta(x, y);
23}
24[[nodiscard]] constexpr auto betal(long double x, long double y) noexcept -> long double
25{
26 return etl::detail::gcem::beta(x, y);
27}
28
29/// @}
30
31} // namespace etl
32
33#endif // TETL_CMATH_BETA_HPP
constexpr auto betaf(float x, float y) noexcept -> float
Definition beta.hpp:20
constexpr auto betal(long double x, long double y) noexcept -> long double
Definition beta.hpp:24
constexpr auto beta(double x, double y) noexcept -> double
Definition beta.hpp:16
Definition adjacent_find.hpp:9