Cos

Copied!
( value )

Description

The Cos function is a trigonometric function which calculates ratios of the lengths of the sides of right triangles. Cos returns the cosine of a number.

Parameters

Parameter Type Definition and Requirements

value

The Number whose cosine should be returned.

Returns

A Number which is the cosine of value.

Examples

The following query returns the cosine of 0.5:

Copied!
(0.5)
0.8775825618903728
Query metrics:
  •    bytesIn:  11

  •   bytesOut:  31

  • computeOps:   1

  •    readOps:   0

  •   writeOps:   0

  •  readBytes:   0

  • writeBytes:   0

  •  queryTime: 3ms

  •    retries:   0

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!