1) I would like to see the possbility of color-coding the assumed variables (insteas of the ~ postfix or a text). Expressions with a lot of ~ are soon illegible, and anyway cannot be easily published. Color seems an obvious possibility.
2) I would also like to see an "execute worksheet up to cursor" option. This would be useful to test modifications of long worksheets, where performing a manual selection is cumbersome. Such an option is common in debuggers, for instance.
3) It would be useful to be able to create - in a simple and well-documented way - variables with a subscript index which is not interpreted as the component of an array. I am thinking of physical quantities like epsilon_0, mu_0, T_melting, etc..., which are not usually understood as being part of an array.
4) It would be useful to be able to get rid of "exotic" mathematical constants. This is in particular directed at gamma. Granted, this is the standard notation for Euler's constant. But is is a much more common notation for the angle of a triangle!!!. Getting rid of all the "ballast" associated to the definition of gamma may be tricky.
Thanks for your comments,
P. Weiss
Some comments
For 1 and 2, there should be an additional to Document and Worksheet mode - something like Development mode, or Programming mode, with usual IDE things like color coding, indenting, parentheses matching etc. (and 1-D input of course.) Currently, trailing tildes can be hidden by setting interface(showassumed=0);
3 - I think, it is done like that in the Standard Maple - epsilon_0 looks subscripted and it is not an indexed variable.
4 - can not be done for backward compatibility (some older code would break.) gamma, actually, is not the worst in the list - D, for example, is worse.
Alec
subscripts
3- Actually if you type x_0 in 2D math, it will be turned into x[0].
Going back to this thread: http://www.mapleprimes.com/forum/indices
If you type x<ctrl>_0 it will create something that is rendered as a subscript, but is not an indexed variable (it is actually `#msub(mi("x"),mn("0"))` - the same as executing 'convert to atomic identifier' on it) . A third option is to type x\_0 to get x_0 literally, but that will not get rendered as a subscript in 2D.
John
Using the layout palette to get a subscript
For (3), you can also use the Layout palette. It contains two entries for an expression with a subscript. The first generates the indexed form and the other results in an atomic identifier.
Paulina Chin
Maplesoft
The tooltip
of the second entry (`A[n]`) is not very helpful indicating that it is different to the entry to its left whose tooltip is almost the same (A[i]). Yes it has the backquotes, but that is not enough hint for realizing that it generates a name. Besides, it generates this code:
choosing colors for me that I may not want.
Laout palette
Well, that is exactly what I mean by "well documented". Indeed, when I put my mouse on the first entry, the bubble help contains
a[n];
wheras on the second I get
`a[n]`;
How am I to understand that this means an atomic identifier??
Maple general help is of little "help.."
P. Weiss
Palette tooltips and colours
Yes, I can see how the tooltip `A[n]` might be confusing. I'll record this weakness in our bugs database. As for the colours, these are the default colours for the palette template. After you insert the item, you can tab through the placeholders and replace the entries with expressions of your choice. The name does not get generated until after you execute the input line.
Paulina