Wiki-Quellcode von Zusaetzliche Klammern

Version 42.1 von Carina Enke am 29.03.2022

Zeige letzte Bearbeiter
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
22
23 {{sv-metadata type="workflow-status"/}}
24
25 {{status colour="Green" title="Fertig"/}}
26 )))
27 )))
28 |=(% colspan="1" %)(% colspan="1" %)
29 (((
30 Varianten
31 )))|(% colspan="1" %)(% colspan="1" %)
32 (((
33 (% class="content-wrapper" %)
34 (((
35 {{sv-metadata type="variants"/}}
36 )))
37 )))
38 |=(% colspan="1" %)(% colspan="1" %)
39 (((
40 Attribute
41 )))|(% colspan="1" %)(% colspan="1" %)
42 (((
43 (% class="content-wrapper" %)
44 (((
45
46
47 {{sv-metadata type="attributes"/}}
48 )))
49 )))
50 |=(% colspan="1" %)(% colspan="1" %)
51 (((
52 Übersetzung
53 )))|(% colspan="1" %)(% colspan="1" %)
54 (((
55 (% class="content-wrapper" %)
56 (((
57 Calculating with signed variables
58
59 {{status colour="Green" title="fertig"/}}
60 )))
61 )))
62 |=(% colspan="1" %)(% colspan="1" %)
63 (((
64 Pagekey
65 )))|(% colspan="1" %)(% colspan="1" %)
66 (((
67 (% class="content-wrapper" %)
68 (((
69 {{sv-metadata type="pagekey"/}}
70 )))
71 )))
72 |=(% colspan="1" %)(% colspan="1" %)
73 (((
74 TODOs
75 )))|(% colspan="1" %)(% colspan="1" %)
76 (((
77 (% class="content-wrapper" %)
78 (((
79 (% class="task-list" %)
80 (((
81 {{task reference="/Tasks/Task_4" status="Done"}}
82 carina: Seite mit Yvonnes Hilfe erstellt
83
84 {{/task}}
85
86 {{task reference="/Tasks/Task_5" status="Done"}}
87 carina {{mention reference="XWiki.0a49950f5c0f19a8015c101b60e10001" style="FULL_NAME" anchor="XWiki-0a49950f5c0f19a8015c101b60e10001-ycISj"/}} Kann übersetzt werden {{date value="2022-01-31" format="yyyy-MM-dd"/}}
88 {{/task}}
89 )))
90 )))
91 )))
92 {{/details}}
93 {{/layout-cell}}
94 {{/layout-section}}
95
96 {{layout-section ac:type="single"}}
97 {{layout-cell}}
98 Wird eine ONYX-Variable in MAXIMA-Berechnungen verwendet, empfiehlt es sich, diese grundsätzlich mit Klammern (⋅) einzuschließen.
99
100 Beispiel: Quadrat der Variable {a}:
101
102 Bei {a}=-5 ergibt {a}^2=-5^2=-25, wohingegen ({a})^2=(-5)^2=25 ist.
103
104 Der Vergleich der zwei Varianten - ohne zusätzliche Klammer und mit zusätzlicher Klammer - ist im Beispielbild zu sehen.
105
106 [[image:attach:MAXIMA - Zusätzliche Klammer_de.png]]
107
108 ONYX bindet das CAS MAXIMA als externe Applikation an. MAXIMA Requests werden, in entsprechend vom Nutzer definierter Form, an MAXIMA gesendet, ohne interpretiert oder verändert zu werden. Wählt man als Variablen- und damit Ergebnis-Datentyp einen numerischen Datentyp, wird einzig der float-Ausdruck hinzugefügt.
109
110 Wenn beabsichtigt ist, dass {var1} einen beliebigen Wert des Nutzers annehmen kann, ist auch "3+4" oder ein beliebiger anderer Ausdruck denkbar. Wird nun {var1} in einem MAXIMA Request, wie z. B. {var1}^2, verwendet, wird dies entsprechend eines Platzhalters ohne weiteren Eingriff eingesetzt und an MAXIMA zur Berechnung übermittelt. Damit der beabsichtigte Gesamtkontex erhalten bleibt, sind deshalb zusätzliche Klammern um ONYX-Variablen notwendig.
111 {{/layout-cell}}
112 {{/layout-section}}
113 {{/layout}}
114 {{/sv-translation}}
115
116 {{sv-translation language="en"}}
117 If an ONYX variable is used in MAXIMA calculations, it is always recommended to enclose it with parentheses (⋅).
118
119 Example: Variable {a} squared:
120
121 If {a}=-5 then {a}^2=-5^2=-25, whereas ({a})^2=(-5)^2=25.
122
123 The comparison of the two variants – with and without parentheses – can be seen in the example image below.
124
125 [[image:attach:MAXIMA - Zusätzliche Klammer_de.png]]
126
127 ONYX connects the CAS MAXIMA as an external application. MAXIMA requests are sent to MAXIMA in a form defined by the user without being interpreted or modified. If you choose a numeric data type as the variable and thus as the result data type, only the float expression will be added.
128
129 If it is intended that {var1} can assume any value of the user, then "3+4" or any other expression is also conceivable. If {var1} is now used in a MAXIMA request, e. g. {var1}^2, this is inserted corresponding to a placeholder without further intervention and transmitted to MAXIMA for calculation. Therefore, to preserve the intended overall context, additional parentheses around ONYX variables are necessary.
130 {{/sv-translation}}