Wiki-Quellcode von Text Variables
Version 391.1 von Carina Enke am 06.02.2019
Zeige letzte Bearbeiter
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{sv-translation language="de"}} | ||
| 2 | {{layout}} | ||
| 3 | {{layout-section ac:type="single"}} | ||
| 4 | {{layout-cell}} | ||
| 5 | |||
| 6 | |||
| 7 | (% class="removedPlaceholderWrapper" %) | ||
| 8 | |||
| 9 | |||
| 10 | |||
| 11 | |||
| 12 | |||
| 13 | {{/layout-cell}} | ||
| 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 | |||
| 20 | [[image:attach:image2017-3-23 8:25:28.png]] | ||
| 21 | |||
| 22 | Folgend werden Ihnen die Möglichkeiten zur Wertsetzung von Text-Variablen vorgestellt. | ||
| 23 | |||
| 24 | [[image:attach:image2017-3-23 8:27:46.png]] | ||
| 25 | |||
| 26 | |||
| 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"}} | ||
| 46 | * [[MAXIMA Manual>>url:http://maxima.sourceforge.net/docs/manual/maxima.html||shape="rect"]] | ||
| 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}} | ||
| 51 | |||
| 52 | |||
| 53 | |||
| 54 | |||
| 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 | |||
| 69 | === Beispiel "Digging a hole" === | ||
| 70 | |||
| 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 | ))) | ||
| 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 | {{info}} | ||
| 101 | 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"]]. | ||
| 102 | {{/info}} | ||
| 103 | |||
| 104 | **Mögliche Eingaben sind beispielsweise:** | ||
| 105 | |||
| 106 | * //Berechnung (MAXIMA): string({a}*x+5): //Es wird eine einfache Funktionsgleichung durch Einsatz des Variablenwertes {a} berechnet. Die Variable {a} muss zuvor definiert sein. | ||
| 107 | * //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. | ||
| 108 | * //Berechnung (MAXIMA): tex1(matrix([{a1},{a2}],[{b1},{b2}])): //MAXIMA ermöglicht auch die Rückgabe von LATEX-Inhalten. | ||
| 109 | |||
| 110 | [[image:attach:image2017-3-22 15:24:50.png]] | ||
| 111 | |||
| 112 | |||
| 113 | {{/layout-cell}} | ||
| 114 | {{/layout-section}} | ||
| 115 | {{/layout}} | ||
| 116 | {{/sv-translation}} | ||
| 117 | |||
| 118 | {{sv-translation language="en"}} | ||
| 119 | {{layout}} | ||
| 120 | {{layout-section ac:type="two_right_sidebar"}} | ||
| 121 | {{layout-cell}} | ||
| 122 | You can generate variables with text content. For this purpose, the variable type "**Text**" is available to you. | ||
| 123 | |||
| 124 | [[image:attach:image2017-3-23 8:25:28.png]] | ||
| 125 | |||
| 126 | To alter the value for the text variable, different options are available, which will be explained in the following sections. | ||
| 127 | |||
| 128 | [[image:attach:image2017-3-23 8:27:46.png]] | ||
| 129 | {{/layout-cell}} | ||
| 130 | |||
| 131 | {{layout-cell}} | ||
| 132 | {{scroll-ignore}} | ||
| 133 | {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Content"}} | ||
| 134 | |||
| 135 | |||
| 136 | {{toc/}} | ||
| 137 | |||
| 138 | **Related topics** | ||
| 139 | |||
| 140 | * [[Calculation task>>url:https://www.bps-system.de/help/display/ONYXintern/.Berechnungsaufgabe+v1.11||shape="rect"]] | ||
| 141 | * [[Formula comparison>>url:https://www.bps-system.de/help/display/ONYXintern/.Formelvergleich+v1.11||shape="rect"]] | ||
| 142 | {{/panel}} | ||
| 143 | |||
| 144 | {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Further information"}} | ||
| 145 | * [[MAXIMA Manual>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]] | ||
| 146 | * [[MAXIMA Good-Practice-Beispiele>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]] | ||
| 147 | * [[MAXIMA Systeminformationen>>url:http://maxima.sourceforge.net/||rel="nofollow" shape="rect" class="external-link"]] | ||
| 148 | {{/panel}} | ||
| 149 | {{/scroll-ignore}} | ||
| 150 | {{/layout-cell}} | ||
| 151 | {{/layout-section}} | ||
| 152 | |||
| 153 | {{layout-section ac:type="single"}} | ||
| 154 | {{layout-cell}} | ||
| 155 | == Random selection == | ||
| 156 | |||
| 157 | Define a value list from which a value is randomly selected. The alternative values are separated by a line break, comma, or semicolon. | ||
| 158 | |||
| 159 | If the selection value contains a comma, a backslash needs to be inserted before the comma. //(Example: "The condition\, which ...")// | ||
| 160 | |||
| 161 | **Possible entries are for example:** | ||
| 162 | |||
| 163 | * //Random selection: Car; motorcycle; bicycle: //One of the specified values will be randomly selected, for example "bicycle". | ||
| 164 | |||
| 165 | === Example "digging a hole" === | ||
| 166 | |||
| 167 | |((( | ||
| 168 | [[image:attach:image2017-3-23 8:32:30.png]] | ||
| 169 | )))|((( | ||
| 170 | In the example, the text variable {PEOPLE} will be randomly initialised with one of the following values: "men", "women", or "children". | ||
| 171 | ))) | ||
| 172 | |((( | ||
| 173 | [[image:attach:image2017-3-23 8:36:15.png]] | ||
| 174 | )))|((( | ||
| 175 | 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"]]. | ||
| 176 | ))) | ||
| 177 | |((( | ||
| 178 | [[image:attach:image2017-3-23 8:38:49.png]] | ||
| 179 | )))|((( | ||
| 180 | 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. | ||
| 181 | ))) | ||
| 182 | |||
| 183 | == Direct value assignment == | ||
| 184 | |||
| 185 | 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). | ||
| 186 | |||
| 187 | **Possible entries are for example:** | ||
| 188 | |||
| 189 | * //Value: Hans: //The variable is assigned the value "Hans". | ||
| 190 | * //Value: The function increases linearly: //The variable is assigned the value "the function increases linearly". | ||
| 191 | |||
| 192 | == Calculation (MAXIMA) == | ||
| 193 | |||
| 194 | [[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. | ||
| 195 | |||
| 196 | {{info}} | ||
| 197 | For further information on the MAXIMA notation, please refer to the help pages of the [[computer>>url:http://maxima.sourceforge.net/||shape="rect"]] [[algebra system MAXIMA>>url:http://maxima.sourceforge.net/||shape="rect"]]. | ||
| 198 | {{/info}} | ||
| 199 | |||
| 200 | **Possible entries are for example:** | ||
| 201 | |||
| 202 | * //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. | ||
| 203 | * //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". | ||
| 204 | * //Calculation (MAXIMA): tex1(matrix([{a1},{a2}],[{b1},{b2}])): //MAXIMA also facilitates the return of latex content. | ||
| 205 | |||
| 206 | [[image:attach:image2017-3-22 15:24:50.png]] | ||
| 207 | {{/layout-cell}} | ||
| 208 | {{/layout-section}} | ||
| 209 | {{/layout}} | ||
| 210 | {{/sv-translation}} |