Sin Cos Tan

From StarLogo Nova Wiki
Revision as of 16:37, 14 August 2023 by Admin (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
The Sin Cos Tan Block

Usage

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