Arcsen Arccos Arctan

From StarLogo Nova Wiki
Revision as of 17:26, 14 August 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
The Arcsin Arccos Arctan Block

Computes the mathematical operations of arcsine, arccosine, or arctangent and returns a value in degrees.

Syntax

Inputs in this block:

  • a number

Example

Arcsin Arccos Arctan example gif
Arcsin Arccos Arctan example code

In this simulation, the purple agent calculates the angle – by taking the arctan of the length of the opposite leg divided by the length of the horizontal leg – that the agent must travel towards in order to create the hypotenuse of the right triangle.

Related Blocks