Sqrt

From StarLogo Nova Wiki
Revision as of 17:26, 14 August 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
Other languages:
The Square Root Block

Usage

Returns the square root of the input.

Syntax

Inputs in this block:

  1. a number

Example

Square Root example code

The procedure shown above calculates the distance that the ‘Hypotenuse tracer’ agent must travel using the pythagorean theorem in order to draw the full hypotenuse of the right triangle.