Callable object computing the nth root: \(x^{1/n}\).
{
template< eve::floating_value T, eve::floating_value U >
}
constexpr callable_nthroot_ nthroot
Callable object computing the nth root: .
Definition: nthroot.hpp:57
The result type is of the compatibility type of the parameters.
#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
int main()
{
wide_ft pf = {2.0f, 64.0f, 4.0f, 2.0f, 2.0f,
wide_nt qn = {4, 3, 2, 1, 0, 4, 3, 2};
std::cout << "---- simd" << '\n'<< std::setprecision(20)
<< "<- pf = " << pf << '\n'
<< "<- qn = " << qn << '\n'
double xf = 64.0f;
int n = 3;
std::cout << "---- scalar" << '\n' << std::setprecision(20)
<< "<- xf = " << xf << '\n'
<< "<- n = " << n << '\n'
;
return 0;
}
constexpr callable_nan_ nan
Computes the IEEE NaN constant.
Definition: nan.hpp:53
constexpr callable_minf_ minf
Computes the -infinity ieee value.
Definition: minf.hpp:60
constexpr raw_type const raw
Higher-order Callable Object imbuing quick and dirty behaviour onto other Callable Objects.
Definition: raw.hpp:43
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65