Ln/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
Line 27: Line 27:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:ln_example.gif|alt=Ln example gif|thumb]]
[[File:set_label_to_example.gif|alt=Ln example gif|thumb]]
[[File:ln_example.png|alt=Ln example code|thumb]]
[[File:ln_example.png|alt=Ln example code|thumb]]
</div>
</div>

Latest revision as of 18:22, 16 August 2023

Other languages:
The Natural Log Block

Usage

Returns the natural log of the input.

Syntax

Inputs in this block:

  1. a number

Example

Ln example gif
Ln example code

This models the change in entropy for the gas, Argon (Ar). The initial and final states are configurable via sliders that the user can manipulate. The calculation for the change in entropy is continuous, meaning that as the slider values are changed, the entropy calculation will run automatically. The equation to calculate the change in entropy uses the ln function which is employed above.