Ln: Difference between revisions

From StarLogo Nova Wiki
(updates from Blockument)
(Marked this version for translation)
Line 2: Line 2:
<translate>
<translate>


<!--T:3-->
<section begin="image"/>[[File:ln.png|alt=The Natural Log Block|thumb]]<section end="image"/>
<section begin="image"/>[[File:ln.png|alt=The Natural Log Block|thumb]]<section end="image"/>


==Usage==
==Usage== <!--T:4-->


<!--T:2-->
<!--T:2-->
<p id="tooltip">Returns the natural log of the input.</p>
<p id="tooltip">Returns the natural log of the input.</p>


==Syntax==
==Syntax== <!--T:5-->


<!--T:6-->
Inputs in this block:
Inputs in this block:
#a number
#a number


==Example==
==Example== <!--T:7-->


<!--T:8-->
[[File:ln_example.gif|alt=Ln example gif|thumb]]
[[File:ln_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]]


<!--T:9-->
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.
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.



Revision as of 16:45, 14 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 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.