Wiki-Quellcode von Textvariablen

Version 407.1 von Carina Enke am 16.10.2018

Verstecke letzte Bearbeiter
Carina Enke 153.1 1 {{sv-translation language="de"}}
2 {{layout}}
3 {{layout-section ac:type="single"}}
Carina Enke 391.1 4 {{layout-cell}}
5
6
7 (% class="removedPlaceholderWrapper" %)
8
9
10
11
12
13 {{/layout-cell}}
Carina Enke 153.1 14 {{/layout-section}}
15
16 {{layout-section ac:type="two_right_sidebar"}}
17 {{layout-cell}}
18 Sie können Variablen mit Text-Inhalten generieren. Hierfür steht Ihnen der Variablen-Typ "**Text**" zur Verfügung.
19
Carina Enke 391.1 20 [[image:attach:image2017-3-23 8:25:28.png]]
Carina Enke 153.1 21
22 Folgend werden Ihnen die Möglichkeiten zur Wertsetzung von Text-Variablen vorgestellt.
23
Carina Enke 391.1 24 [[image:attach:image2017-3-23 8:27:46.png]]
Carina Enke 153.1 25
Carina Enke 359.1 26
Carina Enke 153.1 27
28 (% class="confluence-embedded-file-wrapper image-center-wrapper confluence-embedded-manual-size" %)
29
30 {{/layout-cell}}
31
32 {{layout-cell}}
33 {{scroll-ignore}}
34 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Inhalt"}}
35
36
37 {{toc/}}
38 {{/panel}}
39
40 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Verwandte Themen"}}
41 * [[doc:Berechnungsaufgabe]]
42 * [[doc:Formelvergleich]]
43 {{/panel}}
44
45 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Weiterführende Informationen"}}
Carina Enke 399.1 46 * [[MAXIMA Manual>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]]
Carina Enke 153.1 47 * [[MAXIMA Good-Practice-Beispiele>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]]
48 * [[MAXIMA Systeminformationen>>url:http://maxima.sourceforge.net/||rel="nofollow" shape="rect" class="external-link"]]
49 {{/panel}}
50 {{/scroll-ignore}}
Carina Enke 391.1 51
52
53
54
Carina Enke 153.1 55 {{/layout-cell}}
56 {{/layout-section}}
57
58 {{layout-section ac:type="single"}}
59 {{layout-cell}}
60 == Zufällige Auswahl ==
61
62 Definieren Sie eine Werte-Liste, aus welcher zufällig ein Wert ausgewählt wird. Die alternativen Werte werden durch Zeilenumbruch, Komma oder Semikolon getrennt.
63 Wenn im Auswahlwert ein Komma enthalten ist, setzen Sie dieses bitte mit einem Backslash vor dem Komma um. //(Beispiel: "Die Bedingung\, dass ...")//
64
65 **Mögliche Eingaben sind beispielsweise:**
66
67 * //Zufällige Auswahl: Auto; Motorrad; Fahrrad: //Es wird zufällig einer der angegebenen Werte ausgewählt bspw. "Fahrrad".
68
Carina Enke 391.1 69 === Beispiel "Digging a hole" ===
Carina Enke 153.1 70
Carina Enke 391.1 71 |(((
72 [[image:attach:image2017-3-23 8:32:30.png]]
73 )))|(((
74 Im Beispiel wird die Text-Variable {PEOPLE} zufällig mit einem der Werte "men", "woman" oder "children" initialisiert.
75 )))
76 |(((
77 [[image:attach:image2017-3-23 8:36:15.png]]
78 )))|(((
79 Die Variable wird in den Aufgabentext durch Angabe des Variablen-Namens {PEOPLE} eingebunden. Im Beispiel wird die Variable in eine Aufgabe vom Typ [[Berechnung (Lückentext) >>doc:Berechnungsaufgabe]]eingebunden.
80 )))
81 |(((
82 [[image:attach:image2017-3-23 8:38:49.png]]
83 )))|(((
84 Für den Testdurchlauf wird für jeden Teilnehmer und jeden Versuch zufällig einer der definierten Werte ausgewählt. Im Beispiel wurde zufällig der Wert "woman" eingesetzt.
85 )))
Carina Enke 153.1 86
87 == Direkte Wert-Setzung ==
88
89 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).
90
91 **Mögliche Eingaben sind beispielsweise:**
92
93 * //Wert: Hans: //Die Variable wird auf den Wert "Hans" gesetzt.
94 * //Wert: Die Funktion ist monoton wachsend: //Die Variable wird auf den Wert "Die Funktion ist monoton wachsend" gesetzt.
95
96 == Berechnung (MAXIMA) ==
97
98 [[MAXIMA>>url:http://maxima.sourceforge.net/||shape="rect"]] 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.
99
100 **Mögliche Eingaben sind beispielsweise:**
101
102 * //Berechnung (MAXIMA): string({a}*x+5): //Es wird eine einfache Funktionsgleichung durch Einsatz des Variablenwertes {a} berechnet. Die Variable {a} muss zuvor definiert sein.
103 * //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.
104 * //Berechnung (MAXIMA): tex1(matrix([{a1},{a2}],[{b1},{b2}])): //MAXIMA ermöglicht auch die Rückgabe von LATEX-Inhalten.
105
Carina Enke 391.1 106 [[image:attach:image2017-3-22 15:24:50.png]]
107
Carina Enke 399.1 108 {{info}}
109 Detaillierte Hinweise zur MAXIMA-Schreibweise erhalten Sie im [[MAXIMA Benutzerhandbuch (Manual)>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]]. Eine wertvolle Zusammenstellung von Beispielumsetzungen finden Sie in Form eines Wikis unter [[MAXIMA Good-Practice-Beispiele>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]].
110 {{/info}}
Carina Enke 153.1 111 {{/layout-cell}}
112 {{/layout-section}}
113 {{/layout}}
114 {{/sv-translation}}
115
116 {{sv-translation language="en"}}
117 {{layout}}
118 {{layout-section ac:type="two_right_sidebar"}}
119 {{layout-cell}}
Carina Enke 383.1 120 You can generate variables with text content. For this purpose, the variable type "**Text**" is available to you.
Carina Enke 153.1 121
Carina Enke 383.1 122 [[image:attach:image2017-3-23 8:25:28.png]]
Carina Enke 153.1 123
Carina Enke 383.1 124 To alter the value for the text variable, different options are available, which will be explained in the following sections.
Carina Enke 153.1 125
Carina Enke 383.1 126 [[image:attach:image2017-3-23 8:27:46.png]]
Carina Enke 153.1 127 {{/layout-cell}}
128
129 {{layout-cell}}
130 {{scroll-ignore}}
131 {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Content"}}
132
133
134 {{toc/}}
135
Carina Enke 383.1 136 **Related topics**
137
138 * [[Calculation task>>url:https://www.bps-system.de/help/display/ONYXintern/.Berechnungsaufgabe+v1.11||shape="rect"]]
139 * [[Formula comparison>>url:https://www.bps-system.de/help/display/ONYXintern/.Formelvergleich+v1.11||shape="rect"]]
Carina Enke 153.1 140
Carina Enke 399.1 141 **Further information**
142
143 * [[MAXIMA>>url:http://maxima.sourceforge.net/||shape="rect"]]
Carina Enke 153.1 144 {{/panel}}
145 {{/scroll-ignore}}
146 {{/layout-cell}}
147 {{/layout-section}}
148
149 {{layout-section ac:type="single"}}
150 {{layout-cell}}
151 == Random selection ==
152
153 Define a value list from which a value is randomly selected. The alternative values are separated by a line break, comma, or semicolon.
154
155 If the selection value contains a comma, a backslash needs to be inserted before the comma. //(Example: "The condition\, which ...")//
156
157 **Possible entries are for example:**
158
159 * //Random selection: Car; motorcycle; bicycle: //One of the specified values will be randomly selected, for example "bicycle".
160
Carina Enke 383.1 161 === Example "digging a hole" ===
Carina Enke 153.1 162
Carina Enke 383.1 163 |(((
164 [[image:attach:image2017-3-23 8:32:30.png]]
165 )))|(((
166 In the example, the text variable {PEOPLE} will be randomly initialised with one of the following values: "men", "women", or "children".
167 )))
168 |(((
169 [[image:attach:image2017-3-23 8:36:15.png]]
170 )))|(((
171 To insert the variable into the task text, you need to type the variable name {PEOPLE}. In the example, the variable is included in a task of the type [[calculation (cloze)>>url:https://www.bps-system.de/help/display/ONYXintern/.Berechnungsaufgabe+v1.11||shape="rect"]].
172 )))
173 |(((
174 [[image:attach:image2017-3-23 8:38:49.png]]
175 )))|(((
176 One of the defined values will then be randomly chosen for each participant and each test attempt. In the example, the value "women" was inserted.
177 )))
Carina Enke 153.1 178
179 == Direct value assignment ==
180
181 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).
182
183 **Possible entries are for example:**
184
185 * //Value: Hans: //The variable is assigned the value "Hans".
186 * //Value: The function increases linearly: //The variable is assigned the value "the function increases linearly".
187
188 == Calculation (MAXIMA) ==
189
190 [[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.
191
192 **Possible entries are for example:**
193
194 * //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.
195 * //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".
196 * //Calculation (MAXIMA): tex1(matrix([{a1},{a2}],[{b1},{b2}])): //MAXIMA also facilitates the return of latex content.
197
Carina Enke 383.1 198 [[image:attach:image2017-3-22 15:24:50.png]]
Carina Enke 153.1 199 {{/layout-cell}}
200 {{/layout-section}}
201 {{/layout}}
202 {{/sv-translation}}