This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
argument [2019/11/18 13:34] 127.0.0.1 external edit |
argument [2023/01/09 10:05] (current) dmytroh |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Argument ====== | ====== Argument ====== | ||
- | An argument is defined as a value sent to a function, or to [[Expression|expressions]] or [[Lookup_table|lookup tables]]. | + | In mathematics, |
- | Different functions require different amounts of arguments; | + | In the Ecolego an argument is defined as a value sent to a function, or to [[Expression|expressions]] or [[Lookup_table|lookup tables]]. |
- | | + | Different functions require different amounts of arguments, examples: |
- | * sin() requires one argument - the angle | + | |
- | * mod() requires two arguments - the value and the divider | + | |
+ | * sin() requires one argument - the angle. Returns the trigonometric sine of an angle. | ||
+ | * abs() requires one argument - the value, or parameter/ | ||
+ | * mod() requires two arguments - the dividend | ||
* max() requires two, //or more//, arguments and will return the highest of the given arguments. | * max() requires two, //or more//, arguments and will return the highest of the given arguments. | ||
* A [[Lookup_table|lookup table]] which has been configured to accept arguments accepts only one argument - the lookup key. | * A [[Lookup_table|lookup table]] which has been configured to accept arguments accepts only one argument - the lookup key. |