tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
tan.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_COMPLEX_TAN_HPP
4#define TETL_COMPLEX_TAN_HPP
5
9
10namespace etl {
11
13template <typename T>
14[[nodiscard]] constexpr auto tan(complex<T> const& z) -> complex<T>
15{
16 return etl::sin(z) / etl::cos(z);
17}
18
19} // namespace etl
20
21#endif // TETL_COMPLEX_TAN_HPP
constexpr auto cos(float arg) noexcept -> float
Computes the cosine of arg (measured in radians).
Definition cos.hpp:44
constexpr auto tan(float arg) noexcept -> float
Computes the tangent of arg (measured in radians).
Definition tan.hpp:44
constexpr auto sin(float arg) noexcept -> float
Computes the sine of arg (measured in radians).
Definition sin.hpp:44
Definition adjacent_find.hpp:8
A complex number.
Definition complex.hpp:19