Skip to content

mp_units::utility::sin

Sine of an uncertain value (argument in radians)

Synopsis

Declared in <mp-units/utility/uncertain.h>

[[nodiscard]] constexpr uncertain sin(uncertain const& arg)
  requires requires { sin(arg.value()); } || requires { std::sin(arg.value()); };

Note

This function is a hidden friend of uncertain, declared only inside that class: it can be found only through argument-dependent lookup.

Description

NOTE

Formula: σf = |cos(x)| × σx

Return Value

Note

The return value should not be discarded.