Skip to main content

Arcsin Arccos Arctan

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

Arcsin Arccos Arctan block

Description

The Arcsin Arccos Arctan block computes the mathematical operations of arcsine, arccosine, or arctangent and returns a value in degrees. This is a code block from the Math drawer.

Usage

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

Syntax

Inputs in this block:

  • A number

Example

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.

Arcsin Arccos Arctan example code
  • Sin Cos Tan - Computes sine, cosine, or tangent of an angle