Pi

From StarLogo Nova Wiki
Revision as of 18:25, 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 Pi Block

Usage

Returns the numerical value of pi (3.14159...).

Example

Pi example gif
Pi example code

This is a model that explores the relationship between turning degree and circle area. The model calculates the area of the circle drawn using the equation 𝝅r². The pi block is inserted into the equation as well as a world trait for the radius, which is calculated in The World tab, given the degrees turned input from the slider. Note that the area is in spaceland square units.