Built-in Functions

GoldSim provides a wide variety of built-in functions that can be used in expressions. These functions can be typed in directly, or inserted using the context menu of an input field:

The functions are divided into eight categories (two of the categories only appear under certain circumstances):

An example of the use of a built-in function is shown below:

In this example, the “max” function returns the maximum of a list of arguments (in this case, a and b).

The arguments to a built-in function are enclosed in parentheses, and if there are multiple arguments, they are separated by commas. The arguments to the built-in functions can be links, constants or expressions, but typically must meet certain requirements (e.g., the arguments to a “max” must all share the same dimensions An output attribute for an element that defines the dimensionality (in terms of Length, Time and other fundamental dimensions) of the output.).