Sqrt: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
(duplicate file already uploaded)
 
Line 19: Line 19:


<!--T:8-->
<!--T:8-->
[[File:sqrt_example.gif|alt=Square Root example gif|thumb]]
[[File:arcsin_arccos_arctan_example.gif|alt=Square Root example gif|thumb]]
[[File:sqrt_example.png|alt=Square Root example code|thumb]]
[[File:sqrt_example.png|alt=Square Root example code|thumb]]



Latest revision as of 18:21, 16 August 2023

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 gif
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.