Cos

Not available in this language yet.
Cos( value )
Cos( value )
Cos( value )
Not available in this language yet.
Cos( value )

Description

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

Parameters

Argument Type Definition and Requirements

value

Number

Take the cosine of this value.

Returns

A number which is the cosine of value.

Examples

The query below executes an array of independent cosine operations and returns each answer in the result array. The result array position matches the position in the execution array.

Not available in this language yet.
Not available in this language yet.
System.out.println(
    client.query(
       Cos(Value(0.5))
    ).get());
0.8775825618903728
client.query(
  q.Cos(0.5)
)
.then((ret) => console.log(ret))
0.8775825618903728
Not available in this language yet.
println(Await.result(
  client.query(
    Cos(0.5)
  ),
  5.seconds
))
0.8775825618903728

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!