Mac Dude

1581 Reputation

17 Badges

14 years, 265 days

MaplePrimes Activity


These are questions asked by Mac Dude

I have a procedure which accepts arguments of a (created by myself) type which are records, like so:

Subs:=proc(eqn::seq(equation),elemt::Element,$);
...

Here "Element" is  type I have defined; it is a record with certain fields present.

My question: will this work with option remember? I have the procedure sort-of working without the remember option, but I need to make it work recursively (the Element record can have fields which contain names of other records of type Element...

I have written a procedure to overload a new "Subs" function. It uses a seq of equations as its first argument followed by the object to act upon (yes, it is to have subs functionality on these objects). I find the overloading works when I have just one equation in the argument list, but with more than one it never calls any of the procedures. The code worked with multiple equations before I overloaded it (i.e. the first proc was verified by itself). FWIW the objects (elemt or bm...

Hi; I am working on a package where the data mostly come in Maple records with a varisble number of fields with different names. At least one field in each record has a 6 by 6 matrix, the expressions of which involve the values associated with at least some of the other fields.

Occasionally I have the need to, say, apply a function to each of these fields. E.g., I want to substitute a value for a specific name; this name may show up in several fields and also will show up in the matrix.

I have written a procedure that creates lists of numbers (for later plotting, but that is irrelevant here). These lists I have programmed as 1-d rtables (Vectors and Arrays). Since I do not know initially how many entries the procedure will generate I am using programmer indexing (with round braces) so the Arrays and Vectors get extended as needed, 1 entry at a time. Basically; I dynamically allocate storage in this way. Maybe not the most efficient way but should work for now.

Here is a possibly stupid one: I have written a couple of help files for a package I am developing. As things go; I want to update one. In the help system it tells me to edit the .mw file that i used to write the page in the first place, which I did. But then I am supposed to "Save to Database" from the Help menu.

But... there is no entry to "Save to Database..." in any menu; help or otherwise. Not even in the help system. So I am stuck with an edited help page that I cannot get to ...

First 18 19 20 21 22 23 24 Page 20 of 24