Text Variables
Zufällige Auswahl
Definieren Sie eine Werte-Liste, aus welcher zufällig ein Wert ausgewählt wird. Die alternativen Werte werden durch Zeilenumbruch, Komma oder Semikolon getrennt.
Wenn im Auswahlwert ein Komma enthalten ist, setzen Sie dieses bitte mit einem Backslash vor dem Komma um. (Beispiel: "Die Bedingung\, dass ...")
Mögliche Eingaben sind beispielsweise:
- Zufällige Auswahl: Auto; Motorrad; Fahrrad: Es wird zufällig einer der angegebenen Werte ausgewählt bspw. "Fahrrad".
Direkte Wert-Setzung
Sie können allen Variablen-Typen einen Wert direkt zuweisen und die Variable mit diesem Wert initialisieren. Der Wert kann später in Abhängigkeit anderer Variablen geändert werden (vgl. Bedingungen).
Mögliche Eingaben sind beispielsweise:
- Wert: Hans: Die Variable wird auf den Wert "Hans" gesetzt.
- Wert: Die Funktion ist monoton wachsend: Die Variable wird auf den Wert "Die Funktion ist monoton wachsend" gesetzt.
Berechnung (MAXIMA)
MAXIMA ermöglicht die Arbeit mit Zeichenketten und Formeln. Sie können Variablenwerte auf Basis anderer Variablen berechnen. Geben Sie Ihre Berechnungsvorschrift in MAXIMA-Schreibweise an.
Mögliche Eingaben sind beispielsweise:
- Berechnung (MAXIMA): string({a}*x+5): Es wird eine einfache Funktionsgleichung durch Einsatz des Variablenwertes {a} berechnet. Die Variable {a} muss zuvor definiert sein.
- Berechnung (MAXIMA): string(integrate({function},x,0,1)): MAXIMA ermöglicht komplexe mathematische Berechnungen. Die Ableitung einer Beispielfunktion (bspw. 5*x+5) könnte als Wert "15/2" zurückliefern.
- Berechnung (MAXIMA): tex1(matrix([{a1},{a2}],[{b1},{b2}])): MAXIMA ermöglicht auch die Rückgabe von LATEX-Inhalten.
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".
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.
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.