Sum/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<section begin="image"/>[[File:sum.png|alt=The Sum Block|thumb]]<section end="image"/> | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Usage== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
<p id="tooltip">Returns the sum of two inputs.</p> | <p id="tooltip">Returns the sum of two inputs.</p> | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Syntax== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Inputs in this block: | |||
#a number | |||
#a number | |||
which will then be added together. | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:sum_example.gif|alt=Sum example gif|thumb]] | |||
[[File:sum_example.png|alt=Sum example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
In this model, whenever an Elephant eats a patch of Grass, its health (a trait of the breed Elephant) increases by 1. This is demonstrated visually by setting size equal to health. | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Related Blocks== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
*[[Special:MyLanguage/Difference|Difference -]] | |||
*[[Special:MyLanguage/Product|Product *]] | |||
*[[Special:MyLanguage/Quotient|Quotient /]] | |||
</div> | </div> | ||
[[Category:Matemática]] | [[Category:Matemática]] | ||
[[Category:Code Block]] | [[Category:Code Block]] |
Latest revision as of 18:44, 14 August 2023
Usage
Returns the sum of two inputs.
Syntax
Inputs in this block:
- a number
- a number
which will then be added together.
Example
In this model, whenever an Elephant eats a patch of Grass, its health (a trait of the breed Elephant) increases by 1. This is demonstrated visually by setting size equal to health.