Mac Dude

1571 Reputation

17 Badges

13 years, 51 days

MaplePrimes Activity


These are replies submitted by Mac Dude

Allright, I now understand the way to save the package (I guess I got mixed up with the savelib command while I should use the Save command from LibraryTools. Should be no issue). You are of course correct in mentioning the initialization file as a place where to set libname; that is exactly where I am going. 

I also see that .mla files appear to be binaries of sorts, so I assume I do have to maintain the source of my package separately (as a Maple worksheet). Correct?

Finally, do I understand correctly that the "savelib" command is used to >add< a module/proc/whatever to an extant .mla file (LibraryTools:-Save presumably overwrites)?

 

Thanks for your help.

 

Mac Dude

Will Maple 15 be able to open Maple 16 (standard-) worksheets, obviously without understanding the new features or packages?

@Alejandro

Hmm, we use in essence the same version of Maple (15); so I tried it again, but in a separate worksheet (I am not at the machine I use for the actualy calculation at the moment). Dang it: now it works. Same procedure to define factor_sum, which is cut-paste your definition and clean up the spurious <cr>, and then applyrule(). This did not work a few days ago within the worksheet I use for the actual problem. The fact that the conditional is not documented as such in Maple Help further side-tracked me into believing it may have been a construct of times past. Maple Help indicates there is an if operator (`if`) but I could not get that to work in my case either.

Anyway, I'll try again.

BTW: I am not including an actual example as I feel it has too much unrelated stuff, and as I am definitely on the learning curve I don't want to confuse the issue. So far you & the others have understood my problem quite well and have given me the right hints. I use "add" since "sum" does not work well with vectors (& I haven't figured out yet when exactly the uneval quotes I would need get stripped in the process of manipulating the expressions). I did learn that there apparently is no inert form "Add", which confused me at first.

Mac Dude.

@Alejandro

Hmm, we use in essence the same version of Maple (15); so I tried it again, but in a separate worksheet (I am not at the machine I use for the actualy calculation at the moment). Dang it: now it works. Same procedure to define factor_sum, which is cut-paste your definition and clean up the spurious <cr>, and then applyrule(). This did not work a few days ago within the worksheet I use for the actual problem. The fact that the conditional is not documented as such in Maple Help further side-tracked me into believing it may have been a construct of times past. Maple Help indicates there is an if operator (`if`) but I could not get that to work in my case either.

Anyway, I'll try again.

BTW: I am not including an actual example as I feel it has too much unrelated stuff, and as I am definitely on the learning curve I don't want to confuse the issue. So far you & the others have understood my problem quite well and have given me the right hints. I use "add" since "sum" does not work well with vectors (& I haven't figured out yet when exactly the uneval quotes I would need get stripped in the process of manipulating the expressions). I did learn that there apparently is no inert form "Add", which confused me at first.

Mac Dude.

Ok so I got this to work thanks to Alejandro's distribute_sum function, only to find out that I cannot use Sum (or sum) to add expressions involving elements of arrays :-(. This is what I eventually need (there are data vectors involved in the summing up). I guess I have to use Add instead of Sum. While a "distribute_add" rule can be written equivalent to Alejandro's above (and that part works with Add) I never actually got the second one (factor_sum) to work. You see: my version of Maple (15) does not recognize the "conditional" construct. As it turns out I could use expand and got what I needed so my calculation was successfull with the Sum command as far as the symbolic part is concerned. But with Add, expand does not pull out the factor (and then later steps fail).

So, referring to my original post, how can the factor_sum rule be written without "conditional" and how does this work with Add instead of Sum?

Mac Dude

Ok so I got this to work thanks to Alejandro's distribute_sum function, only to find out that I cannot use Sum (or sum) to add expressions involving elements of arrays :-(. This is what I eventually need (there are data vectors involved in the summing up). I guess I have to use Add instead of Sum. While a "distribute_add" rule can be written equivalent to Alejandro's above (and that part works with Add) I never actually got the second one (factor_sum) to work. You see: my version of Maple (15) does not recognize the "conditional" construct. As it turns out I could use expand and got what I needed so my calculation was successfull with the Sum command as far as the symbolic part is concerned. But with Add, expand does not pull out the factor (and then later steps fail).

So, referring to my original post, how can the factor_sum rule be written without "conditional" and how does this work with Add instead of Sum?

Mac Dude

Excellent; exactly what I was looking for.

Now, there are opportunities for a rant here:

1. This forum is actually kind-of hard to use. What is a good way to scan quickly through previous threads? Seems like old stuff just disappears (and no, the search box does not cut it).

2. To my technical problem; it seems that the specific task I was having difficulty with is not particularly rare. I coud not find >any< hint to the solution in the Maple docs neither under plot & friends nor under matrix & friends. Am >I< just stupid, or are the Maple docs...?

Anyway, don't really need to answer these, but if Maple employees look at this forum maybe they can take this as feedback.

Thanks,

Mac Dude

Excellent; exactly what I was looking for.

Now, there are opportunities for a rant here:

1. This forum is actually kind-of hard to use. What is a good way to scan quickly through previous threads? Seems like old stuff just disappears (and no, the search box does not cut it).

2. To my technical problem; it seems that the specific task I was having difficulty with is not particularly rare. I coud not find >any< hint to the solution in the Maple docs neither under plot & friends nor under matrix & friends. Am >I< just stupid, or are the Maple docs...?

Anyway, don't really need to answer these, but if Maple employees look at this forum maybe they can take this as feedback.

Thanks,

Mac Dude

Ok, I think I understand what you are doing (I am still relatively new to Maple). distribute_sum() seems what I want. I did find out when playing with this somewhat more last night that expand() does pull out a factor from the sum quite nicely.

Also thanks for the suggestion to use the inert form, which I fact I also had discovered as being useful. Ultimately these will not be infinite sums but rather sums of data to be readin, but at this stage I don't want Maple to try doing anything with the sums (other than pulling out constants :-).

Thanks, I'll try your sugestions & get back.

Mac Dude.

Ok, I think I understand what you are doing (I am still relatively new to Maple). distribute_sum() seems what I want. I did find out when playing with this somewhat more last night that expand() does pull out a factor from the sum quite nicely.

Also thanks for the suggestion to use the inert form, which I fact I also had discovered as being useful. Ultimately these will not be infinite sums but rather sums of data to be readin, but at this stage I don't want Maple to try doing anything with the sums (other than pulling out constants :-).

Thanks, I'll try your sugestions & get back.

Mac Dude.

First 40 41 42 Page 42 of 42