Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
eyes:logics:calculate [2017/06/12 15:04] sfiedle [Example] |
eyes:logics:calculate [2017/06/13 07:43] (current) sfiedle [Concept] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Calculate ====== | ====== Calculate ====== | ||
| - | The Calculate element can arithmetically manipulate [[eyes:logics:variable|Variables]], whereby the input images remain unmodified. | + | The Calculate element can arithmetically manipulate [[eyes:logics:variable|Variables]], whereby the I/O remains unmodified. |
| ===== Usage ===== | ===== Usage ===== | ||
| - | This flow control element can apply standard arithmetic onto a Variable. Furthermore, the modulo (%) and exponentiation (^) are implemented as well. | + | This Flow Control element can apply standard arithmetic onto a Variable. Furthermore, the modulo (%) and exponentiation (^) are implemented. |
| + | Important to remember is that a calculation of a Variable of type decimal and a Variable of type integer returns an integer Variable. | ||
| + | |||
| + | To edit the formula fill in the field in the Properties window. | ||
| ===== Example ==== | ===== Example ==== | ||
| + | === Addition === | ||
| {{ :eyes:logics:calc.png |}} | {{ :eyes:logics:calc.png |}} | ||
| - | {{ :eyes:logics:calproperties.png |}} | + | {{ :eyes:logics:calculationproperties.png?nolink |}} |
| - | {{ :eyes:logics:calcupdate.png |}} | + | |
| + | === Different types of Variables === | ||
| + | {{ :eyes:logics:example3.png?nolink |}} | ||
| + | |||
| ===== Parameters and I/O ===== | ===== Parameters and I/O ===== | ||
| Line 22: | Line 30: | ||
| ===== Concept ===== | ===== Concept ===== | ||
| - | |||
| [[https://www.lua.org/pil/3.1.html|Arithmetic Operators in Lua]] | [[https://www.lua.org/pil/3.1.html|Arithmetic Operators in Lua]] | ||