Wiki-Quellcode von Verwendung von MAXIMA und ONYX
Version 72.3 von Carina Enke am 20.12.2023
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | {{layout}} | ||
2 | {{layout-section ac:type="single"}} | ||
3 | {{layout-cell}} | ||
4 | \\ | ||
5 | {{/layout-cell}} | ||
6 | {{/layout-section}} | ||
7 | |||
8 | {{layout-section ac:type="two_right_sidebar"}} | ||
9 | {{layout-cell}} | ||
10 | 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. | ||
11 | {{/layout-cell}} | ||
12 | |||
13 | {{layout-cell}} | ||
14 | |||
15 | {{panel title="Inhalt"}} | ||
16 | |||
17 | |||
18 | {{toc maxLevel="2"/}} | ||
19 | |||
20 | **Verwandte Themen** | ||
21 | |||
22 | * [[Good-Practice Beispiele Maxima/ONYX im Netzwerk Mathematik>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]] | ||
23 | {{/panel}} | ||
24 | |||
25 | |||
26 | \\ | ||
27 | |||
28 | \\ | ||
29 | {{/layout-cell}} | ||
30 | {{/layout-section}} | ||
31 | |||
32 | {{layout-section ac:type="single"}} | ||
33 | {{layout-cell}} | ||
34 | == Rechnen mit vorzeichenbehafteten Variablen == | ||
35 | |||
36 | |||
37 | |||
38 | {{includeplus spaceKey="ONYX" scrollPageId="74CA132C017D9EB672549F1B783158C2"/}} | ||
39 | |||
40 | \\ | ||
41 | {{/layout-cell}} | ||
42 | {{/layout-section}} | ||
43 | |||
44 | {{layout-section ac:type="single"}} | ||
45 | {{layout-cell}} | ||
46 | == Analyse von Teilnehmerantworten mit Hilfe von Variablen == | ||
47 | |||
48 | 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:ONYX.ONYX Editor.Aufgaben.Variablen verwenden.Verwendung von MAXIMA und ONYX.Expertenbewertung]]. | ||
49 | {{/layout-cell}} | ||
50 | {{/layout-section}} | ||
51 | |||
52 | {{layout-section ac:type="single"}} | ||
53 | {{layout-cell}} | ||
54 | \\ | ||
55 | {{/layout-cell}} | ||
56 | {{/layout-section}} | ||
57 | |||
58 | {{layout-section ac:type="single"}} | ||
59 | {{layout-cell}} | ||
60 | (% title="Klicken Sie zum Bearbeiten" class="editable-field inactive" %) | ||
61 | == Automatische Ergänzung ungültiger MAXIMA-Terme == | ||
62 | |||
63 | 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. | ||
64 | {{/layout-cell}} | ||
65 | {{/layout-section}} | ||
66 | |||
67 | {{layout-section ac:type="single"}} | ||
68 | {{layout-cell}} | ||
69 | === Wert einer numerischen Variable === | ||
70 | |||
71 | Bei Ermittlung eines numerischen (Variablen-) Wertes, wird die durch den Autor definierte "ungültige" Berechnung um einen **float-Befehl **ergänzt: float(...);. | ||
72 | |||
73 | Beispiel | ||
74 | |||
75 | * Die Berechnung "1+2" wird in den MAXIMA-Befehl "float(1+2);" geändert. | ||
76 | * Der Datentyp der Variable wird für die Ergebnisausgabe unabhängig der erfolgten MAXIMA-Berechnung beachtet. | ||
77 | * 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. | ||
78 | * 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;". | ||
79 | * 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. | ||
80 | {{/layout-cell}} | ||
81 | {{/layout-section}} | ||
82 | |||
83 | {{layout-section ac:type="single"}} | ||
84 | {{layout-cell}} | ||
85 | \\ | ||
86 | {{/layout-cell}} | ||
87 | {{/layout-section}} | ||
88 | |||
89 | {{layout-section ac:type="three_equal"}} | ||
90 | {{layout-cell}} | ||
91 | [[image:attach:Editor - Variable Maxima_de.png]] | ||
92 | {{/layout-cell}} | ||
93 | |||
94 | {{layout-cell}} | ||
95 | [[image:attach:Editor - Variable Maxima1_IMS_de.png]] | ||
96 | {{/layout-cell}} | ||
97 | |||
98 | {{layout-cell}} | ||
99 | [[image:attach:Player - Variable Maxima1_de.png]] | ||
100 | {{/layout-cell}} | ||
101 | {{/layout-section}} | ||
102 | |||
103 | {{layout-section ac:type="three_equal"}} | ||
104 | {{layout-cell}} | ||
105 | (% style="text-align: center;" %) | ||
106 | //Eingabe im Textfeld// | ||
107 | {{/layout-cell}} | ||
108 | |||
109 | {{layout-cell}} | ||
110 | (% style="text-align: center;" %) | ||
111 | //Ansicht im IMS QTI Quellcode// | ||
112 | {{/layout-cell}} | ||
113 | |||
114 | {{layout-cell}} | ||
115 | (% style="text-align: center;" %) | ||
116 | //Ansicht in der Vorschau mit Ausgabe der Maxima Berechnung// | ||
117 | {{/layout-cell}} | ||
118 | {{/layout-section}} | ||
119 | |||
120 | {{layout-section ac:type="single"}} | ||
121 | {{layout-cell}} | ||
122 | \\ | ||
123 | {{/layout-cell}} | ||
124 | {{/layout-section}} | ||
125 | |||
126 | {{layout-section ac:type="single"}} | ||
127 | {{layout-cell}} | ||
128 | === Wert einer Text-Variable === | ||
129 | |||
130 | Bei Ermittlung eines textbasierten (Variablen-) Wertes, wird die durch den Autor definierte "ungültige" Berechnung um ein **Semikolon **ergänzt. | ||
131 | |||
132 | Beispiel | ||
133 | |||
134 | * Die Eingabe "a" wird in den MAXIMA-Befehl "a;" geändert. | ||
135 | * Der Datentyp der Variable wird für die Ergebnisausgabe unabhängig der erfolgten MAXIMA-Berechnung beachtet. | ||
136 | * Wird der Wert der Variable auf den Typ "Text" gesetzt, ist der Ergebniswert der MAXIMA-Berechnung "a", der Variablenwert wird entsprechend auf "a" gesetzt. | ||
137 | {{/layout-cell}} | ||
138 | {{/layout-section}} | ||
139 | |||
140 | {{layout-section ac:type="single"}} | ||
141 | {{layout-cell}} | ||
142 | \\ | ||
143 | {{/layout-cell}} | ||
144 | {{/layout-section}} | ||
145 | |||
146 | {{layout-section ac:type="three_equal"}} | ||
147 | {{layout-cell}} | ||
148 | [[image:attach:Editor - Variable Maxima3_de.png]] | ||
149 | {{/layout-cell}} | ||
150 | |||
151 | {{layout-cell}} | ||
152 | [[image:attach:Editor - Variable Maxima3_IMS_de.png]] | ||
153 | {{/layout-cell}} | ||
154 | |||
155 | {{layout-cell}} | ||
156 | [[image:attach:Player - Variable Maxima3_de.png]] | ||
157 | {{/layout-cell}} | ||
158 | {{/layout-section}} | ||
159 | |||
160 | {{layout-section ac:type="three_equal"}} | ||
161 | {{layout-cell}} | ||
162 | (% style="text-align: center;" %) | ||
163 | //Eingabe im Textfeld// | ||
164 | {{/layout-cell}} | ||
165 | |||
166 | {{layout-cell}} | ||
167 | (% style="text-align: center;" %) | ||
168 | //Ansicht im IMS QTI Quellcode// | ||
169 | {{/layout-cell}} | ||
170 | |||
171 | {{layout-cell}} | ||
172 | (% style="text-align: center;" %) | ||
173 | //Ansicht in der Vorschau mit Ausgabe der Maxima Berechnung// | ||
174 | {{/layout-cell}} | ||
175 | {{/layout-section}} | ||
176 | |||
177 | {{layout-section ac:type="single"}} | ||
178 | {{layout-cell}} | ||
179 | \\ | ||
180 | {{/layout-cell}} | ||
181 | {{/layout-section}} | ||
182 | |||
183 | {{layout-section ac:type="single"}} | ||
184 | {{layout-cell}} | ||
185 | * 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. | ||
186 | {{/layout-cell}} | ||
187 | {{/layout-section}} | ||
188 | |||
189 | {{layout-section ac:type="three_equal"}} | ||
190 | {{layout-cell}} | ||
191 | [[image:attach:Editor - Variable Maxima2_de.png]] | ||
192 | {{/layout-cell}} | ||
193 | |||
194 | {{layout-cell}} | ||
195 | [[image:attach:Editor - Variable Maxima2_IMS_de.png]] | ||
196 | {{/layout-cell}} | ||
197 | |||
198 | {{layout-cell}} | ||
199 | [[image:attach:Player - Variable Maxima2_de.png]] | ||
200 | {{/layout-cell}} | ||
201 | {{/layout-section}} | ||
202 | |||
203 | {{layout-section ac:type="three_equal"}} | ||
204 | {{layout-cell}} | ||
205 | (% style="text-align: center;" %) | ||
206 | //Eingabe im Textfeld// | ||
207 | {{/layout-cell}} | ||
208 | |||
209 | {{layout-cell}} | ||
210 | (% style="text-align: center;" %) | ||
211 | //Ansicht im IMS QTI Quellcode// | ||
212 | {{/layout-cell}} | ||
213 | |||
214 | {{layout-cell}} | ||
215 | (% style="text-align: center;" %) | ||
216 | //Ansicht in der Vorschau mit Ausgabe der Maxima Berechnung// | ||
217 | {{/layout-cell}} | ||
218 | {{/layout-section}} | ||
219 | {{/layout}} | ||
220 | |||
221 | |||
222 | |||
223 | {{layout}} | ||
224 | {{layout-section ac:type="two_right_sidebar"}} | ||
225 | {{layout-cell}} | ||
226 | |||
227 | |||
228 | {{includeplus spaceKey="ONYX" scrollPageId="7F00000101774042152D23EF7E5D1E7C"/}} | ||
229 | {{/layout-cell}} | ||
230 | |||
231 | {{layout-cell}} | ||
232 | |||
233 | {{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="On this page"}} | ||
234 | |||
235 | |||
236 | {{toc/}} | ||
237 | |||
238 | **Related topics** | ||
239 | |||
240 | * [[Netzwerk Mathematik>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]] | ||
241 | {{/panel}} | ||
242 | |||
243 | {{/layout-cell}} | ||
244 | {{/layout-section}} | ||
245 | {{/layout}} |