Function cos() calculates the cosine value of a radian.
Arguments:
Returns:
Example: Calculate the cosine value of degree 60°
UQLreturn cos(60 * pi() / 180)
Result0.5
Example: Calculate the cosine value of each row (radian) of an alias
UQLuncollect [1, 2.5, 3] as a return cos(a)
Result0.54030230586814 -0.801143615546934 -0.989992496600445