Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
trigonometry.hpp File Reference

Classes

struct  sw::universal::faithful_detail::reduction_real< Real >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::faithful_detail
namespace  sw::universal::faithful_detail::constants

Concepts

concept  sw::universal::faithful_detail::trig_host

Functions

template<typename Real>
int sw::universal::faithful_detail::reduce_pio2 (const faithful< Real > &x, faithful< Real > &t)
template<typename Real>
faithful< Real > sw::universal::faithful_detail::sin_kernel (const faithful< Real > &t)
template<typename Real>
faithful< Real > sw::universal::faithful_detail::cos_kernel (const faithful< Real > &t)
template<typename Real>
void sw::universal::faithful_detail::sincos (const faithful< Real > &x, faithful< Real > &s, faithful< Real > &c)
template<typename Real>
faithful< Real > sw::universal::faithful_detail::domain_error (const char *function)
template<typename FloatingPointType>
requires faithful_detail::trig_host<FloatingPointType>
faithful< FloatingPointType > sw::universal::sin (const faithful< FloatingPointType > &x)
template<typename FloatingPointType>
requires faithful_detail::trig_host<FloatingPointType>
faithful< FloatingPointType > sw::universal::cos (const faithful< FloatingPointType > &x)
template<typename FloatingPointType>
requires faithful_detail::trig_host<FloatingPointType>
faithful< FloatingPointType > sw::universal::tan (const faithful< FloatingPointType > &x)
template<typename FloatingPointType>
requires faithful_detail::trig_host<FloatingPointType>
faithful< FloatingPointType > sw::universal::atan2 (const faithful< FloatingPointType > &y, const faithful< FloatingPointType > &x)
template<typename FloatingPointType>
requires faithful_detail::trig_host<FloatingPointType>
faithful< FloatingPointType > sw::universal::atan (const faithful< FloatingPointType > &x)
template<typename FloatingPointType>
requires faithful_detail::trig_host<FloatingPointType>
faithful< FloatingPointType > sw::universal::asin (const faithful< FloatingPointType > &x)
template<typename FloatingPointType>
requires faithful_detail::trig_host<FloatingPointType>
faithful< FloatingPointType > sw::universal::acos (const faithful< FloatingPointType > &x)

Variables

constexpr double sw::universal::faithful_detail::constants::pi_2 [4]