Skip to content

mp_units::utility::tan

Tangent of an uncertain value (argument in radians)

Synopsis

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

[[nodiscard]] constexpr uncertain tan(uncertain const& arg)
  requires requires { tan(arg.value()); } || requires { std::tan(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 = σx / cos²(x)

Return Value

Note

The return value should not be discarded.