Wiki source code of ONYX und MAXIMA
Last modified by Anna Paul-Hasenfuss on 30.06.2024
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{layout}} | ||
2 | {{layout-section ac:type="two_right_sidebar"}} | ||
3 | {{layout-cell}} | ||
4 | To perform more complex calculations and to fulfill specific requirements, the computer algebra system MAXIMA, which is linked to ONYX, can be used. The [[Netzwerk Mathematik>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/88308307976325||shape="rect"]] has gathered a number of [[Good-Practice-Examples>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/||shape="rect"]]. This collection of typical applications, tricks and pitfalls will help you understand how to use the MAXIMA connection in ONYX. Please find below a selection of topics that are described in detail. | ||
5 | {{/layout-cell}} | ||
6 | |||
7 | {{layout-cell}} | ||
8 | {{panel title="Content"}} | ||
9 | {{toc start="2"/}} | ||
10 | |||
11 | **Related Topics** | ||
12 | |||
13 | * [[Good-Practice-Examples Maxima/ONYX in Netzwerk Mathematik>>url:https://bildungsportal.sachsen.de/opal/auth/RepositoryEntry/5499682817/CourseNode/93229879750473/wiki/Index||shape="rect"]] | ||
14 | {{/panel}} | ||
15 | |||
16 | |||
17 | |||
18 | |||
19 | {{/layout-cell}} | ||
20 | {{/layout-section}} | ||
21 | |||
22 | {{layout-section ac:type="single"}} | ||
23 | {{layout-cell}} | ||
24 | == Calculating with signed variables == | ||
25 | |||
26 | {{display reference="ONYX._Include Library.MAXIMA Sammlung.Rechnen mit vorzeichenbehafteten Variablen"/}} | ||
27 | |||
28 | |||
29 | {{/layout-cell}} | ||
30 | {{/layout-section}} | ||
31 | |||
32 | {{layout-section ac:type="single"}} | ||
33 | {{layout-cell}} | ||
34 | == Analysing user responses with the help of variables == | ||
35 | |||
36 | By using maxima queries in the Variables tab, you can access the answer selected by the user and the correct task solution. More details can be found here [[Expert assessment>>doc:ONYX.Erstellung von Testinhalten.Aufgaben.Bewertung festlegen.Expertenbewertung.WebHome]]. | ||
37 | {{/layout-cell}} | ||
38 | {{/layout-section}} | ||
39 | |||
40 | {{layout-section ac:type="single"}} | ||
41 | {{layout-cell}} | ||
42 | |||
43 | {{/layout-cell}} | ||
44 | {{/layout-section}} | ||
45 | |||
46 | {{layout-section ac:type="single"}} | ||
47 | {{layout-cell}} | ||
48 | (% id="HAutomatischeErgE4nzungungFCltigerMAXIMA-Terme" title="Klicken Sie zum Bearbeiten" class="editable-field inactive" %) | ||
49 | == Auto-completion of invalid MAXIMA terms == | ||
50 | |||
51 | If during the creation or editing process of a variable the user enters a non-valid MAXIMA expression in the field for determining the value, ONYX converts the expression into a valid expression before transferring it to MAXIMA. | ||
52 | {{/layout-cell}} | ||
53 | {{/layout-section}} | ||
54 | |||
55 | {{layout-section ac:type="single"}} | ||
56 | {{layout-cell}} | ||
57 | === Value of a numerical variable === | ||
58 | |||
59 | When determining a numerical (variable) value, the "invalid" calculation defined by the author is completed with a** float command**: float(...);. | ||
60 | |||
61 | Example | ||
62 | |||
63 | * The calculation "1+2" is changed to the MAXIMA command "float(1+2);". | ||
64 | * The data type of the variable is taken into account for the result regardless of the MAXIMA calculation performed. | ||
65 | * If the value of a variable type "Integer" is set by the calculation "1+2", the result value of the MAXIMA calculation is "3.0", the variable value is set accordingly to "3" as an integer value. | ||
66 | * Consider possible limits of the value range in the selected data type. If you wish to use the extended data range of integer values, the MAXIMA calculation should be formulated accordingly with a valid expression, for example "2^53+1;". | ||
67 | * Exception: Should the "invalid" calculation begin with a float command already, then only the addition of a semicolon is required to complete "invalid" calculations of text-based values. | ||
68 | {{/layout-cell}} | ||
69 | {{/layout-section}} | ||
70 | |||
71 | {{layout-section ac:type="single"}} | ||
72 | {{layout-cell}} | ||
73 | |||
74 | {{/layout-cell}} | ||
75 | {{/layout-section}} | ||
76 | |||
77 | {{layout-section ac:type="three_equal"}} | ||
78 | {{layout-cell}} | ||
79 | [[image:attach:Editor - Variable Maxima_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
80 | {{/layout-cell}} | ||
81 | |||
82 | {{layout-cell}} | ||
83 | [[image:attach:Editor - Variable Maxima1_IMS_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
84 | {{/layout-cell}} | ||
85 | |||
86 | {{layout-cell}} | ||
87 | [[image:attach:Player - Variable Maxima1_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
88 | {{/layout-cell}} | ||
89 | {{/layout-section}} | ||
90 | |||
91 | {{layout-section ac:type="three_equal"}} | ||
92 | {{layout-cell}} | ||
93 | (% style="text-align: center;" %) | ||
94 | Entry in the text field | ||
95 | {{/layout-cell}} | ||
96 | |||
97 | {{layout-cell}} | ||
98 | (% style="text-align: center;" %) | ||
99 | IMS QTI source code view | ||
100 | {{/layout-cell}} | ||
101 | |||
102 | {{layout-cell}} | ||
103 | Preview display with output of the maxima calculation | ||
104 | {{/layout-cell}} | ||
105 | {{/layout-section}} | ||
106 | |||
107 | {{layout-section ac:type="single"}} | ||
108 | {{layout-cell}} | ||
109 | |||
110 | {{/layout-cell}} | ||
111 | {{/layout-section}} | ||
112 | |||
113 | {{layout-section ac:type="single"}} | ||
114 | {{layout-cell}} | ||
115 | === Value of a text variable === | ||
116 | |||
117 | When determining a text-based (variable) value, the "invalid" calculation defined by the author is completed with a semicolon. | ||
118 | |||
119 | Example | ||
120 | |||
121 | * The entry "a" is changed to the MAXIMA command "a;". | ||
122 | * The data type of the variable is taken into account for the result regardless of the MAXIMA calculation performed. | ||
123 | * If the value of the variable is set to the type "Text", the result value of the MAXIMA calculation is "a" and the variable value is accordingly set to "a". | ||
124 | {{/layout-cell}} | ||
125 | {{/layout-section}} | ||
126 | |||
127 | {{layout-section ac:type="single"}} | ||
128 | {{layout-cell}} | ||
129 | |||
130 | {{/layout-cell}} | ||
131 | {{/layout-section}} | ||
132 | |||
133 | {{layout-section ac:type="three_equal"}} | ||
134 | {{layout-cell}} | ||
135 | [[image:attach:Editor - Variable Maxima3_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
136 | {{/layout-cell}} | ||
137 | |||
138 | {{layout-cell}} | ||
139 | [[image:attach:Editor - Variable Maxima3_IMS_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
140 | {{/layout-cell}} | ||
141 | |||
142 | {{layout-cell}} | ||
143 | [[image:attach:Player - Variable Maxima3_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
144 | {{/layout-cell}} | ||
145 | {{/layout-section}} | ||
146 | |||
147 | {{layout-section ac:type="three_equal"}} | ||
148 | {{layout-cell}} | ||
149 | (% style="text-align: center;" %) | ||
150 | Entry in the text field | ||
151 | {{/layout-cell}} | ||
152 | |||
153 | {{layout-cell}} | ||
154 | (% style="text-align: center;" %) | ||
155 | IMS QTI source code view | ||
156 | {{/layout-cell}} | ||
157 | |||
158 | {{layout-cell}} | ||
159 | (% style="text-align: center;" %) | ||
160 | Preview display with output of the maxima calculation | ||
161 | {{/layout-cell}} | ||
162 | {{/layout-section}} | ||
163 | |||
164 | {{layout-section ac:type="single"}} | ||
165 | {{layout-cell}} | ||
166 | |||
167 | {{/layout-cell}} | ||
168 | {{/layout-section}} | ||
169 | |||
170 | {{layout-section ac:type="single"}} | ||
171 | {{layout-cell}} | ||
172 | * If you require the output of a term instead of the calculation value, the entry must be enclosed by an apostrophe. For example, if the value of the variable is specified as "1+2", the result value of the MAXIMA calculation is "1+2" and the variable value is set to "1+2" accordingly. | ||
173 | {{/layout-cell}} | ||
174 | {{/layout-section}} | ||
175 | |||
176 | {{layout-section ac:type="three_equal"}} | ||
177 | {{layout-cell}} | ||
178 | [[image:attach:Editor - Variable Maxima2_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
179 | {{/layout-cell}} | ||
180 | |||
181 | {{layout-cell}} | ||
182 | [[image:attach:Editor - Variable Maxima2_IMS_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
183 | {{/layout-cell}} | ||
184 | |||
185 | {{layout-cell}} | ||
186 | [[image:attach:Player - Variable Maxima2_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]] | ||
187 | {{/layout-cell}} | ||
188 | {{/layout-section}} | ||
189 | |||
190 | {{layout-section ac:type="three_equal"}} | ||
191 | {{layout-cell}} | ||
192 | (% style="text-align: center;" %) | ||
193 | Entry in the text field | ||
194 | {{/layout-cell}} | ||
195 | |||
196 | {{layout-cell}} | ||
197 | (% style="text-align: center;" %) | ||
198 | IMS QTI source code view | ||
199 | {{/layout-cell}} | ||
200 | |||
201 | {{layout-cell}} | ||
202 | (% style="text-align: center;" %) | ||
203 | Preview display with output of the maxima calculation | ||
204 | {{/layout-cell}} | ||
205 | {{/layout-section}} | ||
206 | {{/layout}} |