Page tree
Skip to end of metadata
Go to start of metadata

For variables with text, select the type Text.

Textvariable anlegen

Below, you will find instructions on how to configure different values for your text variables.

Wertsetzung für Textvariablen

Random selection

Define a value list from which a value is randomly selected. The alternative values are separated by a line break, comma, or semicolon.

If the selection value contains a comma, a backslash needs to be inserted before the comma. (Example: "The condition\, which ...")

Possible entries are for example:

  • Random selection: Car; motorcycle; bicycle: One of the specified values will be randomly selected, for example "bicycle".

The following examples for the use of numerical variables to generate random values show typical application scenarios:

Direct value assignment

You can directly assign a value to all types of variables in order to initialise them. Later on, the value can be changed depending on other variables (cf. conditions).

Possible entries are for example:

  • Value: Hans: The variable is assigned the value "Hans".
  • Value: The function increases linearly: The variable is assigned the value "the function increases linearly".

Calculation (MAXIMA)

MAXIMA allows for the work with strings and formulas. You can calculate variable values on the basis of other variables. Indicate your calculation rule in MAXIMA notation.

For further information on the MAXIMA notation, please refer to the MAXIMA Manual. A valuable compilation of examples can be found in the form of a wiki under MAXIMA good practice examples.

Possible entries are for example:

  • Calculation (MAXIMA): string({a}*x+5): A simple function equation is calculated including the variable value {a}. Plase note that the variable {a} must have been previously defined.
  • Calculation (MAXIMA): string(integrate({function},x,0,1)): MAXIMA enables complex mathematical calculations. The derivative of a sample function (e.g. 5*x+5) could result in the value "15/2".
  • Calculation (MAXIMA): tex1(matrix([{a1},{a2}],[{b1},{b2}])): MAXIMA also facilitates the return of latex content.

Beispiel für die Wertsetzung per Maxima

  • No labels