Skip to content

Function cos

function cos(const T1 &) math

template <numeric T1>
KFR_FUNCTION flt_type<T1> cos(const T1& x)

Returns the trigonometric cosine of x, evaluated in radians.

Template parameters
T1 Scalar or vector type. Integer arguments are promoted to a floating-point type.
Parameters
x Angle in radians.
Returns
Cosine of x, in the same floating-point type as x (or its element type for vectors).

Fully qualified name: kfr::cos(const T1 &)

Declared at math/sin_cos.hpp:51

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.