Wiki source code of Text Variablen

Last modified by Hendrik Zschocke on 12.01.2024

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