1/* [wxMaxima batch file version 1] [ DO NOT EDIT BY HAND! ]*/
2/* [ Created with wxMaxima version 20.02.2 ] */
3/* [wxMaxima: title   start ]
4Advanced variable names
5   [wxMaxima: title   end   ] */
6
7
8/* [wxMaxima: section start ]
9Engineer-style Subscripts
10   [wxMaxima: section end   ] */
11
12
13/* [wxMaxima: comment start ]
14wxMaxima allows to use engineer-style subscripts in variable or function names:
15   [wxMaxima: comment end   ] */
16
17
18/* [wxMaxima: input   start ] */
19R_100=U_In/I_Out;
20/* [wxMaxima: input   end   ] */
21
22
23/* [wxMaxima: comment start ]
24If this feature is over-eager (or not eagerly enough) wxMaxima offers additional control:
25   [wxMaxima: comment end   ] */
26
27
28/* [wxMaxima: input   start ] */
29wxsubscripts: 'all$
30RR_xy;
31R_100;
32RR_100;
33/* [wxMaxima: input   end   ] */
34
35
36/* [wxMaxima: input   start ] */
37wxsubscripts: false$
38RR_xy;
39R_100;
40RR_100;
41/* [wxMaxima: input   end   ] */
42
43
44/* [wxMaxima: input   start ] */
45wxsubscripts: true$
46RR_xy;
47R_100;
48RR_100;
49/* [wxMaxima: input   end   ] */
50
51
52/* [wxMaxima: input   start ] */
53wxsubscripts: true$
54wxdeclare_subscripted(ew_wewr)$
55ew_wewr;
56ew_qwqw;
57/* [wxMaxima: input   end   ] */
58
59
60/* [wxMaxima: section start ]
61Variable and equation names containing "'", "+", "-" or the like
62   [wxMaxima: section end   ] */
63
64
65/* [wxMaxima: comment start ]
66By escaping it with a backslash nearly every symbol can be made to be interpreted as an ordinary character:
67   [wxMaxima: comment end   ] */
68
69
70/* [wxMaxima: input   start ] */
71eq1\':φ_\-=10;
72eq1\'\':φ_\+=φ_\-;
73/* [wxMaxima: input   end   ] */
74
75
76/* [wxMaxima: input   start ] */
77eq1:subst(eq1\',eq1\'\');
78/* [wxMaxima: input   end   ] */
79
80
81/* [wxMaxima: section start ]
82Equipping any character with accents
83   [wxMaxima: section end   ] */
84
85
86/* [wxMaxima: comment start ]
87Unicode supports so-called "combining diacritics" that allow to assemble a character from several elements. Maxima might not know that the individual parts these characters are combined to are meant to be interpreted as ordinary letters, though, so assembling weird characters is a multi-step process:
88   [wxMaxima: comment end   ] */
89
90
91/* [wxMaxima: subsect start ]
92Easy access to combining diacritics
93   [wxMaxima: subsect end   ] */
94
95
96/* [wxMaxima: comment start ]
97 * Open the "mathematical symbols" sidebar (if it isn't already displayed) and right-click on it
98 * Drag-and-drop a combining diacritic to the "add new symbols" dialogue, for example one of the following.
99 * The "symbols" sidebar now should allow for easy access to these characters.
100   [wxMaxima: comment end   ] */
101
102
103/* [wxMaxima: comment start ]
104A few combining diacritics are:
105   [wxMaxima: comment end   ] */
106
107
108/* [wxMaxima: comment start ]
109 * ̂
110 * ̃
111 * ̅
112   [wxMaxima: comment end   ] */
113
114
115/* [wxMaxima: subsect start ]
116Actually using combining diacritics
117   [wxMaxima: subsect end   ] */
118
119
120/* [wxMaxima: comment start ]
121* First enter the character you want to equip with new accents or the like.
122* Then add a Backslash ("\") in order to tell maxima that the symbol that now follows is to be interpreted as an ordinary character
123* Then add the combining diacritic(s):
124   [wxMaxima: comment end   ] */
125
126
127/* [wxMaxima: input   start ] */
128d\̃=10;
129/* [wxMaxima: input   end   ] */
130
131
132/* [wxMaxima: input   start ] */
133T\̂/U_Test;
134/* [wxMaxima: input   end   ] */
135
136
137/* [wxMaxima: section start ]
138Pre- and post- super- and subscripts
139   [wxMaxima: section end   ] */
140
141
142/* [wxMaxima: comment start ]
143Thanks to Robert Dodier it is now possible to equip variables with super-, and subscripts that are displayed left of the variable name, too:
144   [wxMaxima: comment end   ] */
145
146
147/* [wxMaxima: input   start ] */
148declare_index_properties(A,[postsubscript,postsuperscript,presubscript,presuperscript])$
149A[postsubscript,postsuperscript,presubscript,presuperscript];
150/* [wxMaxima: input   end   ] */
151
152
153/* [wxMaxima: section start ]
154A weird example, just for showing off
155   [wxMaxima: section end   ] */
156
157
158/* [wxMaxima: comment start ]
159Let's hope the font that is used to display this includes cherries, pear and banana symbols.
160   [wxMaxima: comment end   ] */
161
162
163/* [wxMaxima: input   start ] */
164eq1:��+��=��;
165eq2:��+��=��;
166eq3:��=10;
167/* [wxMaxima: input   end   ] */
168
169
170/* [wxMaxima: input   start ] */
171solve([eq1,eq2,eq3],[��,��,��]);
172/* [wxMaxima: input   end   ] */
173
174
175/* [wxMaxima: comment start ]
176For all xkcd fans:
177   [wxMaxima: comment end   ] */
178
179
180/* [wxMaxima: input   start ] */
181xkcd_55:sqrt(��)=\?;
182/* [wxMaxima: input   end   ] */
183
184
185
186/* Old versions of Maxima abort on loading files that end in a comment. */
187"Created with wxMaxima 20.02.2"$
188