Potencia

From StarLogo Nova Wiki
This page is a translated version of the page Power and the translation is 20% complete.
Other languages:
The Power Block

Usage

Returns the value of the first input raised to the power of the second input.

Syntax

Inputs in this block:

  1. an integer
  2. an integer

the first integer represents the base, the second represents the exponent.

Example

Power example gif
Power example code

This is a model that explores the relationship between turning degree and the area of a circle. The model calculates the area of the circle drawn using the equation 𝝅r². Note that the area is in spaceland square units.