Poor symbolic simplification of index operations - Messages
Is there any reason for disabling this feature? How can I enforce evaluation?
I'd expect the same structure of the results no matter if a or 'm is used. In both cases all expressions are evaluated symbolically.
indexing1.sm (17 KiB) downloaded 32 time(s).
WroteSMath can simplify expressions involving index operations, as the example shows. This, however, is limited to expressions with units. It doesn't work for general variables. This also affects the work of Maxima plugin (see bug report), because things like unevaluated linear indexing propagate to Maxima instead of being handled inside SMath Studio.
Is there any reason for disabling this feature? How can I enforce evaluation?
I'd expect the same structure of the results no matter if a or 'm is used. In both cases all expressions are evaluated symbolically.
Hi Martin. I ask the same thing some time ago and the answer was that unevaluated expressions are not assumed as complex values like maple and others, but as general arrays.
You can write your own simplification routine for convert some expression in what you want.
Hope this helps.
indexing1.sm (34 KiB) downloaded 37 time(s).
Best regards.
Alvaro.
Wrote
Hi Martin. I ask the same thing some time ago and the answer was that unevaluated expressions are not assumed as complex values like maple and others, but as general arrays.
You can write your own simplification routine for convert some expression in what you want.
Hope this helps.
Best regards.
Alvaro.
Hi Alvaro, your command of equrep() is really impressive and I hope that some of the stuff you designed will make it into SMath core.
As to assuming any undefined variable being an array, this is neither really implemented nor is it useful IMHO.
The following would be wrong if a and b were matrices (or whatever arrays), given that multiplication isn't by element.
Please, dear developers, don't take that as a request to suppress the last bit of symbolic simplification! I'd prefer the scalar assumption, perhaps augmented by some way to mark undefined variables as arrays. Examples would be underline or overarrow, perhaps the number of markers indicating the order (one underline - vector, two underlines - matrix).
I guess that 99% of the users would expect undefined variables to be scalars.
WroteI guess that 99% of the users would expect undefined variables to be scalars
For sure 'scalar' for Quick plot [ln(x)],
Thus will support all Smath more scalar maths .
-
New Posts
-
No New Posts