MaplePrimes Commons General Technical Discussions

The primary forum for technical discussions.
Concerning custom indexing functions it seems that there is nothing analogous to TypeTools:-AddType(...), with which you can define new types as
TypeTools:-AddType(name,handler);
where, most importantly, name may be a variable. How can something similar (i.e., the name being given by a variable) be accomplished for new indexing functions when the only available option for defining those seems to be something like
`index/name` := proc()
   # something
end proc;
where name cannot be a variable?
I have Maple 11 installed on PC running on Vista, the classical version works fine, but the standard version doesn't. In fact I'm not even able to open it. I've tried uninstalling Maple 11 to reinstall it after but the uninstallation process doesn't run neither. I also tried reinstalling Maple 11 over my existing installation but the installation process shuts because Maple Reader is already installed. Now Maple 11 doesn't even display in my list of installed programs. How to get that fixed?
The tabbing nuisance, as earlier reported, is driving me crazy; it keeps popping up all the time. Not only when copy-pasting lines of codes to some new execution group, but also when saving, closing, and reopening the document. Please, help me by either telling me if you experience the same nuisances, or, better, how to circumvent these.
In Maple 11 I use 'Maple notation' (as opposed to the new option '2-D Math Notation'), partly because I'm used to that from Maple 9.5, and partly because only in 'Maple notation' tabbing can be used (to format longer codes nicely). But it seems to me that Maple 11 cannot get the formatting correctly. An example: 1. Type the following code (where the second line is tab-indented):
for a from 1 to 4 do
	print (a):
end do:
2. Copy-paste this code to a new execution group. Now the problem is the following: Pressing the End-button on the keyboard, the end of the print-line (in the copy-pasted code) cannot be reached. Only after having manually removed the tab-indentation and reinserted it again can the end of the line be reached.
Consider the following two codes: Code 1:
restart:
with(LinearAlgebra):
M1,M2 := Vector(2,fill=Matrix(4,4))$2:
M1[1] := M1[1] + IdentityMatrix(4):
M2[1] := M2[1] + IdentityMatrix(4):
M1[1];
Code 2:
restart:
with(LinearAlgebra):
M1,M2 := Vector(2,fill=Matrix(4,4)),Vector(2,fill=Matrix(4,4)):
M1[1] := M1[1] + IdentityMatrix(4):
M2[1] := M2[1] + IdentityMatrix(4):
M1[1];
According to my knowledge they ought to give identical output: the 4-dimensional identity matrix. But they don't. The first code gives twice that, as if M1[1] and M2[1] reference the same object in memory. The second code gives the correct answer.
I have a project where I'm trying to establish the identification of systems of equations (usually 10 or so equations). The systems can be under- exactly- or over-determined. If over-determined, I would like to know what constraints would need to be made to identify the system. For example, with the system: x + y = a x - y = b 2x + 2y = c Is there a way to have Maple return that c = 2a? Also, in some cases when the system is under-determined I get parametric solutions but in other cases I get {} (which is the same result returned for over-determined equations). Does anyone know
Run the following two pieces of code plot(3*arctan((-1+x)*x/(-2+x))/x, x = 0 .. 1) int(3*arctan((-1+x)*x/(-2+x))/x, x = 0 .. 1) There seems to be a bug in "int" I am using Maple 10.

The functionality to extend and augment the context-sensitive menus is quite nice. I especially like the submodule ContextMenu:-Test whose exports allow one to programmatically test the results and new menus.

But what about installing menus with items whose type checks relate to locals?

Here's a simple example.

> newCM:=ContextMenu:-New():
> newCM[Entries][Add]("local to global", "convert(%EXPR,`global`)", `local`):
> newCM[Entries...

What does a return statement mean within a module's body, but not within ModuleApply, ModuleLoad, or ModuleUnload procedures?

Is the disappearance of the return line, and the u:=3 line that follows it, some sort of automatic simplification? I'm not even sure what such a return statement is supposed to mean, in a module's body but not in ModuleApply et al.

> module() local u; u:=2; return; u:=3; end:
> convert(%,string);
"module () local u; u := 2; end module"

When I mention automatic simplification here I mean things like the disappearance of the if..then..fi for the following procedure creation. I also wonder where in the help-pages that simplification is documented.
Consider the following:
restart;
abs(x)/x;
                                          |x|
                                          ---
                                           x 
simplify( (1) );
                                          |x|
                                          ---
                                           x 
simplify( (1) ) assuming x>0;  # OK
                                           1
simplify( (1) ) assuming x=0;  # OK
                                           0
simplify( (1) ) assuming x>=0; # Uh-oh
                                           1
I bought the student version of Maple 11 last week, loaded it onto a Windows Vista machine, and used it for a few days. I had an occasional crash to the desktop, which became frustrating. Upon discovery there was a specific Vista update, I downloaded that, uninstalled the original version, installed the new one and activated it. Now, Maple does not run. If I try to start it nothing happens. No error message, nothing. This occurs regardless of how I try to start it (e.g. "Run as administrator" or not, with UAC on or off). If I try to reinstall Maple, I get the message telling me to first uninstall the previous version, but the uninstaller has the same problem as Maple itself...it will not run.
Hi there, So I'm having this strange experience using dchange and then simplify: doing this: Int(Int(F(u,v),u=abs(v-1)..(v+1)),v=0..1); PDEtools[dchange](u=sqrt(1+v^2-2*v*mu),%,[mu]); simplify(%) assuming v>0; gives the sensible answer: -(Int(v*(Int(F(mu, v)/sqrt(1+v^2-2*v*mu), mu = 1 .. -1)), v = 0 .. 1)) But if I try to simplify on the same line as the dchange: Int(Int(F(u,v),u=abs(v-1)..(v+1)),v=0..1); simplify(PDEtools[dchange](u=sqrt(1+v^2-2*v*mu),%,[mu])) assuming v>0; i get -v*(Int(Int(F(mu, v, v)/sqrt(1+v^2-2*v*mu), mu = 1 .. -1), v = 0 .. 1))
Whenever I try to copy and paste between two worksheets in Maple 8, Maple crashes when I attempt to save the file following the paste. The paste operation appears to work; it is only when I go to save the file that it crashes. Is this a font related problem? Is there any way around this that will preserve the format of the text? Thanks!

Maple 11.00, Standard GUI, worksheet mode.

plot(sin(x),x=-10..10,legend="__never_display_this_legend_entry");

It's magic. The LEGEND() call is present in the PLOT structure, but it doesn't get displayed.

acer

I have a Maple program (involves 20 or 30 procedures) that frequently results in "Cannot allocate memory". I assume the remember table for one of the procs is balooning. Is there a good way to find out which one it is? Something like... get a list of all the user-defined procs, then show their sizes (including remember table) ... ?
First 52 53 54 55 56 57 58 Last Page 54 of 79