Wiki source code of Text Variablen

Last modified by Carina Enke on 12.12.2025

Show last authors
1 {{section}}
2 {{column width="60%"}}
3 For variables with text, select the type **Text**.
4
5 [[image:attach:Editor - Textvariable Typauswahl_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" height="184" width="406"]]
6
7 Below, you will find instructions on how to configure different values for your text variables.
8
9 [[image:attach:Editor - Textvariable Wertsetzung_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" height="151" width="404"]]
10 {{/column}}
11
12 {{column width="30%"}}
13 {{panel title="Content"}}
14 {{toc start="2"/}}
15 {{/panel}}
16
17 {{panel title="Related Topics"}}
18 * [[Calculation interaction>>doc:ONYX.Erstellung von Testinhalten.Aufgabentypen.Berechnungsaufgabe.WebHome]]
19 * [[Formula comparison>>doc:ONYX.Erstellung von Testinhalten.Aufgabentypen.Formelvergleich.WebHome]]
20 {{/panel}}
21
22 {{panel title="Further information"}}
23 * [[MAXIMA manual>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]]
24 * [[MAXIMA good practice examples>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]]
25 * [[MAXIMA system information>>url:http://maxima.sourceforge.net/||rel="nofollow" shape="rect" class="external-link"]]
26 {{/panel}}
27 {{/column}}
28 {{/section}}
29
30
31 == Random selection ==
32
33 Define a value list from which a value is randomly selected. The alternative values are separated by a line break, comma, or semicolon.
34
35 If the selection value contains a comma, a backslash needs to be inserted before the comma. (Example: "The condition\, which ...")
36
37 **Possible entries are for example:**
38
39 * Random selection: Car; motorcycle; bicycle: One of the specified values will be randomly selected, for example "bicycle".
40
41 {{info}}
42 The following examples for the use of numerical variables to generate random values show typical application scenarios:
43
44 * [[Example "Digging a hole">>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel - Digging a hole.WebHome]]
45 * [[Example "Transport" - Use of random parameters>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Variablen verwenden.Beispiele zum Einsatz von Variablen.Beispiel Transport - Einsatz von Zufallsparametern.WebHome]]
46 {{/info}}
47
48 == Direct value assignment ==
49
50 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).
51
52 **Possible entries are for example:**
53
54 * Value: Hans: The variable is assigned the value "Hans".
55 * Value: The function increases linearly: The variable is assigned the value "the function increases linearly".
56
57 == Calculation (MAXIMA) ==
58
59 [[MAXIMA>>url:http://maxima.sourceforge.net/||shape="rect"]] 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.
60
61 {{info}}
62 For further information on the MAXIMA notation, please refer to the [[MAXIMA Manual>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]]. A valuable compilation of examples can be found in the form of a wiki under [[MAXIMA good practice examples>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]].
63 {{/info}}
64
65 **Possible entries are for example:**
66
67 * 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.
68 * 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".
69 * Calculation (MAXIMA): tex1(matrix([{a1},{a2}],[{b1},{b2}])): MAXIMA also facilitates the return of latex content.
70
71 [[image:attach:Editor - Textvariable Wertsetzung per Maxima_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]