E.V.E
v2022.03.00

◆ deginrad

eve::deginrad = {}
inlineconstexpr

Callable object multiplying the input by \(\pi/180\).

Defined in Header

#include <eve/module/math.hpp>

Callable Signatures

namespace eve
{
template< eve::floating_value T >
T deginrad(T x) noexcept;
}
constexpr callable_deginrad_ deginrad
Callable object multiplying the input by .
Definition: deginrad.hpp:51
Definition: all_of.hpp:22

Parameters

x: floating value.

Return value

Returns the elementwise the degree input converted in radian.

Example

#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = { 0.0f, 1.0f, -1.0f, 90.0f
std::cout
<< "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> eve::deginrad(pf) = " << eve::deginrad(pf) << '\n';
float xf = 45.0f;
float yf = eve::pi(eve::as<float>());
std::cout
<< "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> eve::deginrad(xf) = " << eve::deginrad(xf) << '\n'
<< "<- yf = " << yf << '\n'
<< "-> eve::deginrad(yf) = " << eve::deginrad(yf) << '\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:95
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