Mac Dude

1566 Reputation

17 Badges

12 years, 326 days

MaplePrimes Activity


These are questions asked by Mac Dude

Hi, this  must have been asked numerous time, but I cannot find it in MaplePrimes:

How does one "collect" sqrt terms? collect(expression,sqrt) does not work because sqrt is actually represented as ^(1/2) in  Maple. collect on '^' does not work either... ??

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.

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