Wiki-Quellcode von Text Variables
Version 167.1 von Carina Enke am 20.10.2023
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 | {{details}} | ||
| 8 | (% class="wrapped" %) | ||
| 9 | |=((( | ||
| 10 | Verantwortlicher | ||
| 11 | )))|((( | ||
| 12 | \\ | ||
| 13 | ))) | ||
| 14 | |=(% colspan="1" %)(% colspan="1" %) | ||
| 15 | ((( | ||
| 16 | Status | ||
| 17 | )))|(% class="highlight-yellow" colspan="1" data-highlight-colour="yellow" %)(% class="highlight-yellow" colspan="1" data-highlight-colour="yellow" %) | ||
| 18 | ((( | ||
| 19 | (% class="content-wrapper" %) | ||
| 20 | ((( | ||
| 21 | {{sv-metadata type="workflow-status"/}} | ||
| 22 | |||
| 23 | {{status colour="Green" title="fertig"/}} | ||
| 24 | ))) | ||
| 25 | ))) | ||
| 26 | |=(% colspan="1" %)(% colspan="1" %) | ||
| 27 | ((( | ||
| 28 | Varianten | ||
| 29 | )))|(% colspan="1" %)(% colspan="1" %) | ||
| 30 | ((( | ||
| 31 | (% class="content-wrapper" %) | ||
| 32 | ((( | ||
| 33 | {{sv-metadata type="variants"/}} | ||
| 34 | ))) | ||
| 35 | ))) | ||
| 36 | |=(% colspan="1" %)(% colspan="1" %) | ||
| 37 | ((( | ||
| 38 | Attribute | ||
| 39 | )))|(% colspan="1" %)(% colspan="1" %) | ||
| 40 | ((( | ||
| 41 | (% class="content-wrapper" %) | ||
| 42 | ((( | ||
| 43 | {{sv-metadata type="attributes"/}} | ||
| 44 | ))) | ||
| 45 | ))) | ||
| 46 | |=(% colspan="1" %)(% colspan="1" %) | ||
| 47 | ((( | ||
| 48 | Pagekey | ||
| 49 | )))|(% colspan="1" %)(% colspan="1" %) | ||
| 50 | ((( | ||
| 51 | (% class="content-wrapper" %) | ||
| 52 | ((( | ||
| 53 | {{sv-metadata type="pagekey"/}} | ||
| 54 | ))) | ||
| 55 | ))) | ||
| 56 | |=(% colspan="1" %)(% colspan="1" %) | ||
| 57 | ((( | ||
| 58 | Übersetzung | ||
| 59 | )))|(% colspan="1" %)(% colspan="1" %) | ||
| 60 | ((( | ||
| 61 | (% class="content-wrapper" %) | ||
| 62 | ((( | ||
| 63 | Text Variables | ||
| 64 | |||
| 65 | {{status colour="Green" title="fertig"/}} | ||
| 66 | ))) | ||
| 67 | ))) | ||
| 68 | |=(% colspan="1" %)(% colspan="1" %) | ||
| 69 | ((( | ||
| 70 | TODOs | ||
| 71 | )))|(% colspan="1" %)(% colspan="1" %) | ||
| 72 | ((( | ||
| 73 | (% class="content-wrapper" %) | ||
| 74 | ((( | ||
| 75 | (% class="task-list" %) | ||
| 76 | ((( | ||
| 77 | {{task reference="/Tasks/Task_1" status="Done"}} | ||
| 78 | carina: MARKETING-143 Versionstypen angepasst | ||
| 79 | Deutsche Bildüberschriften und englische Bilder fehlen noch. | ||
| 80 | {{/task}} | ||
| 81 | ))) | ||
| 82 | |||
| 83 | carina Info: Update mit 1.11 zum Stand 11.1.18 Autor Yvonne | ||
| 84 | |||
| 85 | (% class="task-list" %) | ||
| 86 | ((( | ||
| 87 | {{task reference="/Tasks/Task_3" status="Done"}} | ||
| 88 | carina {{mention reference="XWiki.0a49950f5c0f19a8015c101b60e10001" style="FULL_NAME" anchor="XWiki-0a49950f5c0f19a8015c101b60e10001-QUPCv"/}}Bitte allgemeines Review der Eng. Seite (ggf sind hier noch nicht alle Änderungen durch Yvonne erfasst und übersetzt) + Hinweiserweiterung | ||
| 89 | {{/task}} | ||
| 90 | ))) | ||
| 91 | ))) | ||
| 92 | ))) | ||
| 93 | {{/details}} | ||
| 94 | {{/layout-cell}} | ||
| 95 | {{/layout-section}} | ||
| 96 | |||
| 97 | {{layout-section ac:type="two_right_sidebar"}} | ||
| 98 | {{layout-cell}} | ||
| 99 | Sie können Variablen mit Text-Inhalten generieren. Hierfür steht Ihnen der Variablen-Typ "**Text**" zur Verfügung. | ||
| 100 | |||
| 101 | [[image:attach:Editor - Textvariable Typauswahl_de.png]] | ||
| 102 | |||
| 103 | Folgend werden Ihnen die Möglichkeiten zur Wertsetzung von Text-Variablen vorgestellt. | ||
| 104 | |||
| 105 | [[image:attach:Editor - Textvariable Wertsetzung_de.png]] | ||
| 106 | |||
| 107 | \\ | ||
| 108 | |||
| 109 | (% class="confluence-embedded-file-wrapper image-center-wrapper confluence-embedded-manual-size" %) | ||
| 110 | |||
| 111 | {{/layout-cell}} | ||
| 112 | |||
| 113 | {{layout-cell}} | ||
| 114 | {{scroll-ignore}} | ||
| 115 | {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Inhalt"}} | ||
| 116 | |||
| 117 | |||
| 118 | {{toc/}} | ||
| 119 | {{/panel}} | ||
| 120 | |||
| 121 | {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Verwandte Themen"}} | ||
| 122 | * [[doc:Berechnungsaufgabe]] | ||
| 123 | * [[doc:Formelvergleich]] | ||
| 124 | {{/panel}} | ||
| 125 | |||
| 126 | {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Weiterführende Informationen"}} | ||
| 127 | * [[MAXIMA Manual>>url:http://maxima.sourceforge.net/docs/manual/maxima.html||shape="rect"]] | ||
| 128 | * [[MAXIMA Good-Practice-Beispiele>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]] | ||
| 129 | * [[MAXIMA Systeminformationen>>url:http://maxima.sourceforge.net/||rel="nofollow" shape="rect" class="external-link"]] | ||
| 130 | {{/panel}} | ||
| 131 | {{/scroll-ignore}} | ||
| 132 | {{/layout-cell}} | ||
| 133 | {{/layout-section}} | ||
| 134 | |||
| 135 | {{layout-section ac:type="single"}} | ||
| 136 | {{layout-cell}} | ||
| 137 | == Zufällige Auswahl == | ||
| 138 | |||
| 139 | Definieren Sie eine Werte-Liste, aus welcher zufällig ein Wert ausgewählt wird. Die alternativen Werte werden durch Zeilenumbruch, Komma oder Semikolon getrennt. | ||
| 140 | Wenn im Auswahlwert ein Komma enthalten ist, setzen Sie dieses bitte mit einem Backslash vor dem Komma um. //(Beispiel: "Die Bedingung\, dass ...")// | ||
| 141 | |||
| 142 | **Mögliche Eingaben sind beispielsweise:** | ||
| 143 | |||
| 144 | * //Zufällige Auswahl: Auto; Motorrad; Fahrrad: //Es wird zufällig einer der angegebenen Werte ausgewählt bspw. "Fahrrad". | ||
| 145 | \\ | ||
| 146 | |||
| 147 | {{info}} | ||
| 148 | Folgende Beispiele zum Einsatz von numerischen Variablen zur Generierung von Zufallswerten zeigen typische Anwendungsszenarien: | ||
| 149 | |||
| 150 | * [[Beispiel "Digging a hole">>doc:Beispiele zum Einsatz von Variablen]] | ||
| 151 | * [[Beispiel "Transport" - Einsatz von Zufallsparametern>>doc:Beispiele zum Einsatz von Variablen]] | ||
| 152 | {{/info}} | ||
| 153 | |||
| 154 | == Direkte Wert-Setzung == | ||
| 155 | |||
| 156 | 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). | ||
| 157 | |||
| 158 | **Mögliche Eingaben sind beispielsweise:** | ||
| 159 | |||
| 160 | * //Wert: Hans: //Die Variable wird auf den Wert "Hans" gesetzt. | ||
| 161 | * //Wert: Die Funktion ist monoton wachsend: //Die Variable wird auf den Wert "Die Funktion ist monoton wachsend" gesetzt. | ||
| 162 | |||
| 163 | == Berechnung (MAXIMA) == | ||
| 164 | |||
| 165 | [[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. | ||
| 166 | |||
| 167 | {{info}} | ||
| 168 | 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"]]. | ||
| 169 | {{/info}} | ||
| 170 | |||
| 171 | **Mögliche Eingaben sind beispielsweise:** | ||
| 172 | |||
| 173 | * //Berechnung (MAXIMA): string({a}*x+5): //Es wird eine einfache Funktionsgleichung durch Einsatz des Variablenwertes {a} berechnet. Die Variable {a} muss zuvor definiert sein. | ||
| 174 | * //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. | ||
| 175 | * //Berechnung (MAXIMA): tex1(matrix([{a1},{a2}],[{b1},{b2}])): //MAXIMA ermöglicht auch die Rückgabe von LATEX-Inhalten. | ||
| 176 | |||
| 177 | [[image:attach:Editor - Textvariable Wertsetzung per Maxima_de.png]] | ||
| 178 | {{/layout-cell}} | ||
| 179 | {{/layout-section}} | ||
| 180 | {{/layout}} | ||
| 181 | {{/sv-translation}} | ||
| 182 | |||
| 183 | {{sv-translation language="en"}} | ||
| 184 | {{layout}} | ||
| 185 | {{layout-section ac:type="two_right_sidebar"}} | ||
| 186 | {{layout-cell}} | ||
| 187 | For variables with text, select the type //**Text**//. | ||
| 188 | |||
| 189 | [[image:attach:Editor - Textvariable Typauswahl_de.png]] | ||
| 190 | |||
| 191 | Below, you will find instructions on how to configure different values for your text variables. | ||
| 192 | |||
| 193 | [[image:attach:Editor - Textvariable Wertsetzung_de.png]] | ||
| 194 | {{/layout-cell}} | ||
| 195 | |||
| 196 | {{layout-cell}} | ||
| 197 | {{scroll-ignore}} | ||
| 198 | {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Content"}} | ||
| 199 | |||
| 200 | |||
| 201 | {{toc/}} | ||
| 202 | {{/panel}} | ||
| 203 | |||
| 204 | {{panel title="Related topics"}} | ||
| 205 | * [[Calculation interaction>>url:https://www.bps-system.de/help/display/ONYXintern/.Berechnungsaufgabe+v8.X||shape="rect"]] | ||
| 206 | * [[Formula comparison>>url:https://www.bps-system.de/help/display/ONYXintern/.Formelvergleich+v8.X||shape="rect"]] | ||
| 207 | {{/panel}} | ||
| 208 | |||
| 209 | {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Further information"}} | ||
| 210 | * [[MAXIMA manual>>url:http://maxima.sourceforge.net/docs/manual/de/maxima.html||shape="rect"]] | ||
| 211 | * [[MAXIMA good practice examples>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]] | ||
| 212 | * [[MAXIMA system information>>url:http://maxima.sourceforge.net/||rel="nofollow" shape="rect" class="external-link"]] | ||
| 213 | {{/panel}} | ||
| 214 | {{/scroll-ignore}} | ||
| 215 | {{/layout-cell}} | ||
| 216 | {{/layout-section}} | ||
| 217 | |||
| 218 | {{layout-section ac:type="single"}} | ||
| 219 | {{layout-cell}} | ||
| 220 | == Random selection == | ||
| 221 | |||
| 222 | Define a value list from which a value is randomly selected. The alternative values are separated by a line break, comma, or semicolon. | ||
| 223 | |||
| 224 | If the selection value contains a comma, a backslash needs to be inserted before the comma. //(Example: "The condition\, which ...")// | ||
| 225 | |||
| 226 | **Possible entries are for example:** | ||
| 227 | |||
| 228 | * //Random selection: Car; motorcycle; bicycle: //One of the specified values will be randomly selected, for example "bicycle". | ||
| 229 | \\ | ||
| 230 | |||
| 231 | {{info}} | ||
| 232 | The following examples for the use of numerical variables to generate random values show typical application scenarios: | ||
| 233 | |||
| 234 | * [[Example "Digging a hole">>url:https://www.bps-system.de/help/display/ONYXintern/.Beispiele+zum+Einsatz+von+Variablen+v8.7||shape="rect"]] | ||
| 235 | * [[Example "Transport" - Use of random parameters>>url:https://www.bps-system.de/help/display/ONYXintern/.Beispiele+zum+Einsatz+von+Variablen+v8.7||shape="rect"]] | ||
| 236 | {{/info}} | ||
| 237 | |||
| 238 | == Direct value assignment == | ||
| 239 | |||
| 240 | 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). | ||
| 241 | |||
| 242 | **Possible entries are for example:** | ||
| 243 | |||
| 244 | * //Value: Hans: //The variable is assigned the value "Hans". | ||
| 245 | * //Value: The function increases linearly: //The variable is assigned the value "the function increases linearly". | ||
| 246 | |||
| 247 | == Calculation (MAXIMA) == | ||
| 248 | |||
| 249 | [[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. | ||
| 250 | |||
| 251 | {{info}} | ||
| 252 | 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"]]. | ||
| 253 | {{/info}} | ||
| 254 | |||
| 255 | **Possible entries are for example:** | ||
| 256 | |||
| 257 | * //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. | ||
| 258 | * //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". | ||
| 259 | * //Calculation (MAXIMA): tex1(matrix([{a1},{a2}],[{b1},{b2}])): //MAXIMA also facilitates the return of latex content. | ||
| 260 | |||
| 261 | [[image:attach:Editor - Textvariable Wertsetzung per Maxima_de.png]] | ||
| 262 | {{/layout-cell}} | ||
| 263 | {{/layout-section}} | ||
| 264 | {{/layout}} | ||
| 265 | {{/sv-translation}} |