Wiki-Quellcode von Verwendung von MAXIMA und ONYX
Version 67.1 von Carina Enke am 19.12.2023
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | |||
2 | {{layout}} | ||
3 | {{layout-section ac:type="single"}} | ||
4 | {{layout-cell}} | ||
5 | \\ | ||
6 | {{/layout-cell}} | ||
7 | {{/layout-section}} | ||
8 | |||
9 | {{layout-section ac:type="two_right_sidebar"}} | ||
10 | {{layout-cell}} | ||
11 | Für komplexere Berechnungen und spezifische Anforderungen kann das an ONYX angebundene Computer-Algebra-System MAXIMA genutzt werden. Das[[ Netzwerk Mathematik >>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/88308307976325||shape="rect"]]hat eine Reihe [[Good-Practice-Beispiele>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/||shape="rect"]] gesammelt. Diese Sammlung von typischen Nutzungsmöglichkeiten, Kniffen und Stolperfallen unterstützt das Verständnis bei der Verwendung der MAXIMA-Anbindung in ONYX.Folgend werden ausgewählte Themen aufgegriffen und noch einmal detailliert beschrieben. | ||
12 | {{/layout-cell}} | ||
13 | |||
14 | {{layout-cell}} | ||
15 | {{scroll-ignore}} | ||
16 | {{panel title="Inhalt"}} | ||
17 | |||
18 | |||
19 | {{toc maxLevel="2"/}} | ||
20 | |||
21 | **Verwandte Themen** | ||
22 | |||
23 | * [[Good-Practice Beispiele Maxima/ONYX im Netzwerk Mathematik>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]] | ||
24 | {{/panel}} | ||
25 | {{/scroll-ignore}} | ||
26 | |||
27 | \\ | ||
28 | |||
29 | \\ | ||
30 | {{/layout-cell}} | ||
31 | {{/layout-section}} | ||
32 | |||
33 | {{layout-section ac:type="single"}} | ||
34 | {{layout-cell}} | ||
35 | == Rechnen mit vorzeichenbehafteten Variablen == | ||
36 | |||
37 | |||
38 | |||
39 | {{includeplus spaceKey="ONYX" scrollPageId="74CA132C017D9EB672549F1B783158C2"/}} | ||
40 | |||
41 | \\ | ||
42 | {{/layout-cell}} | ||
43 | {{/layout-section}} | ||
44 | |||
45 | {{layout-section ac:type="single"}} | ||
46 | {{layout-cell}} | ||
47 | == Analyse von Teilnehmerantworten mit Hilfe von Variablen == | ||
48 | |||
49 | Durch Maxima-Abfragen im Tab Variablen ist ein Zugriff auf die vom Teilnehmer gewählte Antwort und die korrekte Aufgabenlösung möglich. Einen Einblick gibt die Seite [[doc:Expertenbewertung]]. | ||
50 | {{/layout-cell}} | ||
51 | {{/layout-section}} | ||
52 | |||
53 | {{layout-section ac:type="single"}} | ||
54 | {{layout-cell}} | ||
55 | \\ | ||
56 | {{/layout-cell}} | ||
57 | {{/layout-section}} | ||
58 | |||
59 | {{layout-section ac:type="single"}} | ||
60 | {{layout-cell}} | ||
61 | (% title="Klicken Sie zum Bearbeiten" class="editable-field inactive" %) | ||
62 | == Automatische Ergänzung ungültiger MAXIMA-Terme == | ||
63 | |||
64 | Gibt der Anwender beim Erstellen oder Bearbeiten einer Variable einen nicht gültigen MAXIMA-Ausdruck in das Feld zur Wert-Ermittlung ein, wandelt ONYX den Ausdruck vor Übergabe an MAXIMA in einen gültigen Ausdruck um. | ||
65 | {{/layout-cell}} | ||
66 | {{/layout-section}} | ||
67 | |||
68 | {{layout-section ac:type="single"}} | ||
69 | {{layout-cell}} | ||
70 | === Wert einer numerischen Variable === | ||
71 | |||
72 | Bei Ermittlung eines numerischen (Variablen-) Wertes, wird die durch den Autor definierte "ungültige" Berechnung um einen **float-Befehl **ergänzt: float(...);. | ||
73 | |||
74 | Beispiel | ||
75 | |||
76 | * Die Berechnung "1+2" wird in den MAXIMA-Befehl "float(1+2);" geändert. | ||
77 | * Der Datentyp der Variable wird für die Ergebnisausgabe unabhängig der erfolgten MAXIMA-Berechnung beachtet. | ||
78 | * Wird durch die Berechnung "1+2" der Wert einer Variable vom Typ "Ganze Zahl" gesetzt, ist der Ergebniswert der MAXIMA-Berechnung "3.0", der Variablenwert wird entsprechend auf "3" als ganzzahliger Wert gesetzt. | ||
79 | * Zu Berücksichtigen sind mögliche Grenzen des Wertebereichs im gewählten Datentyp. Soll der erweiterte Datenbereich ganzzahliger Werte genutzt werden, sollte die MAXIMA-Berechnung mit einem gültigen Ausdruck entsprechend formuliert werden, beispielsweise "2^53+1;". | ||
80 | * Ausnahme: Beginnt die "ungültige" Berechnung bereits mit einem float-Befehl, erfolgt nur die Ergänzung mit einem Semikolon gleich zur Ergänzung von "ungültigen" Berechnungen von textbasierten Werten. | ||
81 | {{/layout-cell}} | ||
82 | {{/layout-section}} | ||
83 | |||
84 | {{layout-section ac:type="single"}} | ||
85 | {{layout-cell}} | ||
86 | \\ | ||
87 | {{/layout-cell}} | ||
88 | {{/layout-section}} | ||
89 | |||
90 | {{layout-section ac:type="three_equal"}} | ||
91 | {{layout-cell}} | ||
92 | [[image:attach:Editor - Variable Maxima_de.png]] | ||
93 | {{/layout-cell}} | ||
94 | |||
95 | {{layout-cell}} | ||
96 | [[image:attach:Editor - Variable Maxima1_IMS_de.png]] | ||
97 | {{/layout-cell}} | ||
98 | |||
99 | {{layout-cell}} | ||
100 | [[image:attach:Player - Variable Maxima1_de.png]] | ||
101 | {{/layout-cell}} | ||
102 | {{/layout-section}} | ||
103 | |||
104 | {{layout-section ac:type="three_equal"}} | ||
105 | {{layout-cell}} | ||
106 | (% style="text-align: center;" %) | ||
107 | //Eingabe im Textfeld// | ||
108 | {{/layout-cell}} | ||
109 | |||
110 | {{layout-cell}} | ||
111 | (% style="text-align: center;" %) | ||
112 | //Ansicht im IMS QTI Quellcode// | ||
113 | {{/layout-cell}} | ||
114 | |||
115 | {{layout-cell}} | ||
116 | (% style="text-align: center;" %) | ||
117 | //Ansicht in der Vorschau mit Ausgabe der Maxima Berechnung// | ||
118 | {{/layout-cell}} | ||
119 | {{/layout-section}} | ||
120 | |||
121 | {{layout-section ac:type="single"}} | ||
122 | {{layout-cell}} | ||
123 | \\ | ||
124 | {{/layout-cell}} | ||
125 | {{/layout-section}} | ||
126 | |||
127 | {{layout-section ac:type="single"}} | ||
128 | {{layout-cell}} | ||
129 | === Wert einer Text-Variable === | ||
130 | |||
131 | Bei Ermittlung eines textbasierten (Variablen-) Wertes, wird die durch den Autor definierte "ungültige" Berechnung um ein **Semikolon **ergänzt. | ||
132 | |||
133 | Beispiel | ||
134 | |||
135 | * Die Eingabe "a" wird in den MAXIMA-Befehl "a;" geändert. | ||
136 | * Der Datentyp der Variable wird für die Ergebnisausgabe unabhängig der erfolgten MAXIMA-Berechnung beachtet. | ||
137 | * Wird der Wert der Variable auf den Typ "Text" gesetzt, ist der Ergebniswert der MAXIMA-Berechnung "a", der Variablenwert wird entsprechend auf "a" gesetzt. | ||
138 | {{/layout-cell}} | ||
139 | {{/layout-section}} | ||
140 | |||
141 | {{layout-section ac:type="single"}} | ||
142 | {{layout-cell}} | ||
143 | \\ | ||
144 | {{/layout-cell}} | ||
145 | {{/layout-section}} | ||
146 | |||
147 | {{layout-section ac:type="three_equal"}} | ||
148 | {{layout-cell}} | ||
149 | [[image:attach:Editor - Variable Maxima3_de.png]] | ||
150 | {{/layout-cell}} | ||
151 | |||
152 | {{layout-cell}} | ||
153 | [[image:attach:Editor - Variable Maxima3_IMS_de.png]] | ||
154 | {{/layout-cell}} | ||
155 | |||
156 | {{layout-cell}} | ||
157 | [[image:attach:Player - Variable Maxima3_de.png]] | ||
158 | {{/layout-cell}} | ||
159 | {{/layout-section}} | ||
160 | |||
161 | {{layout-section ac:type="three_equal"}} | ||
162 | {{layout-cell}} | ||
163 | (% style="text-align: center;" %) | ||
164 | //Eingabe im Textfeld// | ||
165 | {{/layout-cell}} | ||
166 | |||
167 | {{layout-cell}} | ||
168 | (% style="text-align: center;" %) | ||
169 | //Ansicht im IMS QTI Quellcode// | ||
170 | {{/layout-cell}} | ||
171 | |||
172 | {{layout-cell}} | ||
173 | (% style="text-align: center;" %) | ||
174 | //Ansicht in der Vorschau mit Ausgabe der Maxima Berechnung// | ||
175 | {{/layout-cell}} | ||
176 | {{/layout-section}} | ||
177 | |||
178 | {{layout-section ac:type="single"}} | ||
179 | {{layout-cell}} | ||
180 | \\ | ||
181 | {{/layout-cell}} | ||
182 | {{/layout-section}} | ||
183 | |||
184 | {{layout-section ac:type="single"}} | ||
185 | {{layout-cell}} | ||
186 | * Ist eine Ausgabe eines Terms statt des Berechnungswertes gewünscht, so muss die Eingabe durch Hochkomma eingeschlossen werden. Wird der Wert der Variable beispielsweise mit "1+2" angegeben, ist der Ergebniswert der MAXIMA-Berechnung "1+2", der Variablenwert wird entsprechend auf "1+2" gesetzt. | ||
187 | {{/layout-cell}} | ||
188 | {{/layout-section}} | ||
189 | |||
190 | {{layout-section ac:type="three_equal"}} | ||
191 | {{layout-cell}} | ||
192 | [[image:attach:Editor - Variable Maxima2_de.png]] | ||
193 | {{/layout-cell}} | ||
194 | |||
195 | {{layout-cell}} | ||
196 | [[image:attach:Editor - Variable Maxima2_IMS_de.png]] | ||
197 | {{/layout-cell}} | ||
198 | |||
199 | {{layout-cell}} | ||
200 | [[image:attach:Player - Variable Maxima2_de.png]] | ||
201 | {{/layout-cell}} | ||
202 | {{/layout-section}} | ||
203 | |||
204 | {{layout-section ac:type="three_equal"}} | ||
205 | {{layout-cell}} | ||
206 | (% style="text-align: center;" %) | ||
207 | //Eingabe im Textfeld// | ||
208 | {{/layout-cell}} | ||
209 | |||
210 | {{layout-cell}} | ||
211 | (% style="text-align: center;" %) | ||
212 | //Ansicht im IMS QTI Quellcode// | ||
213 | {{/layout-cell}} | ||
214 | |||
215 | {{layout-cell}} | ||
216 | (% style="text-align: center;" %) | ||
217 | //Ansicht in der Vorschau mit Ausgabe der Maxima Berechnung// | ||
218 | {{/layout-cell}} | ||
219 | {{/layout-section}} | ||
220 | {{/layout}} | ||
221 | {{/sv-translation}} | ||
222 | |||
223 | {{sv-translation language="en"}} | ||
224 | {{layout}} | ||
225 | {{layout-section ac:type="two_right_sidebar"}} | ||
226 | {{layout-cell}} | ||
227 | |||
228 | |||
229 | {{includeplus spaceKey="ONYX" scrollPageId="7F00000101774042152D23EF7E5D1E7C"/}} | ||
230 | {{/layout-cell}} | ||
231 | |||
232 | {{layout-cell}} | ||
233 | {{scroll-ignore}} | ||
234 | {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="On this page"}} | ||
235 | |||
236 | |||
237 | {{toc/}} | ||
238 | |||
239 | **Related topics** | ||
240 | |||
241 | * [[Netzwerk Mathematik>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]] | ||
242 | {{/panel}} | ||
243 | {{/scroll-ignore}} | ||
244 | {{/layout-cell}} | ||
245 | {{/layout-section}} | ||
246 | {{/layout}} | ||
247 | {{/sv-translation}} |