Callable object computing the secant of the input.
{
template< eve::floating_value T >
template< eve::floating_value T >
as_complex_t<T>
sec(as_complex_t<T> z)
noexcept;
}
constexpr callable_sec_ sec
Callable object computing the secant of the input.
Definition: sec.hpp:73
#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<<
"-> sec(pf) = " <<
eve::sec(pf) <<
'\n'
;
float xf = 3.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<<
"-> sec(xf) = " <<
eve::sec(xf) <<
'\n';
return 0;
}
constexpr callable_inf_ inf
Computes the infinity ieee value.
Definition: inf.hpp:58
constexpr callable_pi_ pi
Callable object computing the constant .
Definition: pi.hpp:49
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65