User Tools

Site Tools


argument

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
argument [2023/01/09 09:54]
dmytroh
argument [2023/01/09 10:05]
dmytroh
Line 7: Line 7:
 Different functions require different amounts of arguments, examples: Different functions require different amounts of arguments, examples:
  
-  * time() requires no arguments. You need therefore not write the parenthesis, but can call the function using only the name: time. +  * 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 +  * sin() requires one argument - the angle. Returns the trigonometric sine of an angle. 
-  * mod() requires two arguments - the value and the divider+  * 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.txt · Last modified: 2023/01/09 10:05 by dmytroh