Sen Cos Tan

From StarLogo Nova Wiki
This page is a translated version of the page Sin Cos Tan and the translation is 17% complete.
Other languages:
The Sin Cos Tan Block

Compute the mathematical operations of sine, cosine, or tangent and takes as input a value in degrees.

Syntax

Inputs in this block:

  1. a number

Example

Sin Cos Tan example gif
Sin Cos Tan example code

In this model, each agent moves on the z axis in accordance with the value of the sine function in relation to its x coordinate. In sequence, these agents create a sine wave.

Related Blocks