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