Cosine

Block Group: Trigonometric Functions
Icon:Cosine block icon

The Cosine block returns the cosine of the given angle.

For information on using dataflow blocks, see Dataflow.


Input/Output Property

The following property of the Cosine block can take input and give output.

  • input (number)

input specifies the angle to get the cosine for, in degrees.


Output Property

The following property of the Cosine block can give output but cannot take input.

  • output (number)

output returns the cosine of the input.


Example

The following image shows an example of the Cosine block. In this example, the angle is 180 degrees, and the cosine is −1.

Cosine block example