Mac Dude

1122 Reputation

13 Badges

7 years, 233 days

MaplePrimes Activity


These are replies submitted by Mac Dude

@acer 

This may do what I want; I'll check it out.

M.D.

@acer 

This may do what I want; I'll check it out.

M.D.

Ok, this works, too, for my specific case. However, it appears that it simply has lowered the cut-off; if I scale my data down by 1E-8 they again disappear from the plot.

So I am ok with this particular issue, but I still see a bug, or undesirable feature, here. Is there any mechanism to file a bug report with Maplesoft?? I actually truly think this needs to be fixed.

Ok, this works, too, for my specific case. However, it appears that it simply has lowered the cut-off; if I scale my data down by 1E-8 they again disappear from the plot.

So I am ok with this particular issue, but I still see a bug, or undesirable feature, here. Is there any mechanism to file a bug report with Maplesoft?? I actually truly think this needs to be fixed.

Well, I ran the same sheet (my sheet, exactly the same that fails in Maple 15) in my old copy of Maple 12 and, guess what, it works there!!

I then ran your code in Maple 15, and it fails with the same symptom: nothing below 1E-8 gets plotted. The vector Y gets created correctly, it is the plotting that is fouled up.

So, smells like a bug in Maple 15 & I am pretty sure I run 15.01 at my home (here at work it is Maple 15.00).

What am I to do?? I don't really want to revert to Maple 12 (even though for this particular calculation I could). I consider this a rather serious issue. Is there anyway to get this fixed?? Or is there any hidden parameter that makes logplot ignore values below 1E-8??

Mac Dude.

Well, I ran the same sheet (my sheet, exactly the same that fails in Maple 15) in my old copy of Maple 12 and, guess what, it works there!!

I then ran your code in Maple 15, and it fails with the same symptom: nothing below 1E-8 gets plotted. The vector Y gets created correctly, it is the plotting that is fouled up.

So, smells like a bug in Maple 15 & I am pretty sure I run 15.01 at my home (here at work it is Maple 15.00).

What am I to do?? I don't really want to revert to Maple 12 (even though for this particular calculation I could). I consider this a rather serious issue. Is there anyway to get this fixed?? Or is there any hidden parameter that makes logplot ignore values below 1E-8??

Mac Dude.

Yes, these plot types reflect the spirit of what I am trying to achieve. The fact that I can rotate the figure is a bonus.

Thanks for the suggestion, I'll certainly study these & try to adapt them to my use.

Mac Dude

Yes, these plot types reflect the spirit of what I am trying to achieve. The fact that I can rotate the figure is a bonus.

Thanks for the suggestion, I'll certainly study these & try to adapt them to my use.

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

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

First 34 35 36 37 Page 36 of 37