User Tools

Site Tools


argument

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 function, or to [[Expression|expressions]] or [[Lookup_table|lookup tables]].+In mathematics, an argument of a function is a value provided to obtain the function's result. It is also called an independent variable
  
-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]]. 
  
-  * time() requires no arguments. You need therefore not write the parenthesis, but can call the function using only the name: time. +Different functions require different amounts of arguments, examples: 
-  * sin() requires one argument - the angle + 
-  * mod() requires two arguments - the value and the divider+  * time() requires no arguments. You need therefore not write the parenthesis, but can call the function using only the name: time. Returns the current simulation time in the simulation time unit
 +  * sin() requires one argument - the angle. Returns the trigonometric sine of an angle. 
 +  * abs() requires one argument - the value, or parameter/expression name to return its absolute value.  
 +  * mod() requires two arguments - the dividend and the divider. The function helps find a remainder after a number (dividend) is divided by another number (divisor).
   * 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.
argument.1574080450.txt.gz · Last modified: 2019/11/18 13:34 by 127.0.0.1