On This Page

Home / Search/ Language Reference/ Functions/ Scalar Functions/ Mathematical Functions/cos

cos

The cos function returns the cosine of the specified numeric expression.

Syntax

    cos( X )

Arguments

  • X: A real number.

Examples

This example returns 0.5403023058681398:

print num = 1
| extend newField = cos( num )