Power: Difference between revisions
(updates from Blockument) |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:3--> | |||
<section begin="image"/>[[File:power.png|alt=The Power Block|thumb]]<section end="image"/> | <section begin="image"/>[[File:power.png|alt=The Power Block|thumb]]<section end="image"/> | ||
==Usage== | ==Usage== <!--T:4--> | ||
<!--T:2--> | <!--T:2--> | ||
<p id="tooltip">Returns the value of the first input raised to the power of the second input.</p> | <p id="tooltip">Returns the value of the first input raised to the power of the second input.</p> | ||
==Syntax== | ==Syntax== <!--T:5--> | ||
<!--T:6--> | |||
Inputs in this block: | Inputs in this block: | ||
#an integer | #an integer | ||
Line 16: | Line 18: | ||
the first integer represents the base, the second represents the exponent. | the first integer represents the base, the second represents the exponent. | ||
==Example== | ==Example== <!--T:7--> | ||
<!--T:8--> | |||
[[File:power_example.gif|alt=Power example gif|thumb]] | [[File:power_example.gif|alt=Power example gif|thumb]] | ||
[[File:power_example.png|alt=Power example code|thumb]] | [[File:power_example.png|alt=Power example code|thumb]] | ||
<!--T:9--> | |||
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. | 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. | ||
Revision as of 16:49, 14 August 2023
Usage
Returns the value of the first input raised to the power of the second input.
Syntax
Inputs in this block:
- an integer
- an integer
the first integer represents the base, the second represents the exponent.
Example
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.