Skip to main content

COS

A mathematical function that returns the trigonometric cosine of the specified angle - measured in radians - in the specified expression.

Syntax​

COS ( float_expression )

Arguments​

float_expression
An expression of either type float or of a type that implicitly convert to float.

Return Type​

Returns values of type FLOAT64.

Examples​

Examples in this section use the example blockchain.

This example shows the results of using the COS function.

SELECT COS(real) FROM example;

Response:

COS(real) [FLOAT64]
NULL
1
0.5403023058681398
-0.4161468365471424