ianmccr

145 Reputation

5 Badges

15 years, 126 days

MaplePrimes Activity


These are questions asked by ianmccr

The example worksheet uses table to determine the covering relations in a POSET. This is old (Maple 11 and earlier code) that I have been trying to update into a package to explore calculations in an algebraic structure.  The example procedure seems to work well, but because of problems with similar procedures elsewhere, I have some concerns about the validity of using tables in this fashion. Specifically, this procedure initializes a table, then proceeds to modify the table entries, and then reformats the sequences into sets.  I have not been able to find documentation for modifying entries in tables after they have been defined. The documentation for tables only covers adding entries, removing entries, but not modifying entries.

Is modifying tables as my  procedure does an undocumented feature?

In addition, the documentation does not explain how to clear a table. It only describes how to clear a table entry. Older code sometimes purported to clear a table by assigning its name (with uneval quotes) to itself, but this does not seem to work.

exampletableoperations.mw

If there is a list of operations that do not work properly in 2D notation, please add the expression sequence operator `$` which does not work with strings as demonstrated in the attached worksheet . sequenceoperastionfailure.mw

It seems to work properly with numeric sequences. I only noticed this in maple 2023, but it likely applies to earlier versions as well

The attached worksheet contains expressions that cause a warning message to appear in my worksheet.  In another post it was suggested that the variable i should be explicitly declared local in the definition of the arrow expression. However, as shown in the same worksheet, this gives rise to an error message. Subsequently, I found a statement in help that suggested this approach would not work in 2-d math notation.  Are there any other ways of eliminating these warnings in 2-d math notation?

warningmessage.mw

I am composing a note using a maple document to demonstrate how the  mathematics from a text (that I find rather dense) can be unfolded into actual calculations using Maple.   My problem is to relate a typeset expression to actual Maple notation that bears no resemblance to the formal expression.

What I would like to do is to convert the typeset notation into a maple name which I can then associate with the calculation written in the functional notation.  For example, the quantity

|A0|2 := leftcontract(reverse(A0),A0);

When I use convert(|A0|2, name);   The result is abs(A[0] ^2 ) which isn’t typeset.

Similarly, the use of single left quotes around the expression as in ` |A0|2 ` it produces an error message when I test the result.  

type( ` |A0|2 ` ,name);
 Error, mismatched or missing bracket/operator

Admittedly, for ordinary calculations, just using any convenient name is more than satisfactory. However, in this case, where I’m trying to link together formal mathematical notation with the Maple operations it implies, being able to link the calculations to a special typeset same would be useful.

I am working with expressions resulting from maple calculations that are 3-4 lines long, but I have to make a term-by-term comparison between one calculation and another. I would like to interweave the results of the two calculation so that one is above the other allowing direct comparison. It would also be nice to break up the expressions into pieces.  Unfortunately, I have gone as far as I can using maple directly.  The only solution I have come up with is to convert the expressions into Tex, copy them to a Tex editor and manipulate the expressions.  Unfortunately, Tex markup makes it difficult interpret the terms. 

Has anyone come up with another method to manually manipulate the output from maple calculations.

1 2 3 4 5 Page 1 of 5