MaplePrimes Commons General Technical Discussions

The primary forum for technical discussions.
I installed Maple 11 a while back without any problems and have used it without any problems for a while as well. Recently I started using it again after a short hiatus and it does not boot. I get a message that tells me that the jvm.dll file found in <maple>\bin.win is not a valid Windows image and then another error message telling me that there was an error loading it. I can still use Classic Worksheet Maple but when I try to use the preferences option the same message appears. Any idea how to fix it? I don't have an installation disk as I downloaded it directly from MapleSoft. Thanks for a
Hey everyone, I have a system of equations that is kind of complex, and would like to create a generic solution for it, but I am not sure if this is possible. I have 6 equations, and only 4 unknowns. These equations are describing a physical system, so there is a solution to the problem, and will always be a solution given the imputs from the physical system. All of the equations are of the form: A+B*Sin(theta1)+C*Sin(theta2)+D*Cos(theta1)+E*Cos(theta2)+F*Sin(theta1)*Sin(theta2)+G*Cos(theta1)*Cos(theta2)+H*Sin(theta1)*Cos(theta2)+I*Cos(theta1)*Sin(theta2)=J+K*Sin(theta3)+L*Sin(theta4)+M*Cos(theta3)+N*Cos(theta4)+O*Sin(theta3)*Sin(theta4)+P*Cos(theta3)*Cos(theta4)+Q*Sin(theta3)*Cos(theta4)+R*Cos(theta3)*Sin(theta4)
Hi, I'm having a problem optimizing a function using Maple. To be perfectly honest, it took me quite a while to realize that the problem was with maple; as it stands, changing the limits of optimization affects the final answer, despite the maxima always remaining between the limits. That is to say, given a function whose maxima is at, say, x=5, trying to find the maxima between the limits 3-9 gives a completely different than finding the maxima between the limits 4 and 6. This isn't a poorly behaved function, as evidenced by the attached graphs, so I'm at a loss to explain this behaviour.
Hi is this impossible to solve? eq1:=A/(G+1/(1/V+1/(Y+1/(1/Z+1/X1))))/2=M1; eq2:=A/(G+1/(1/V+1/(Y+1/(1/Z+1/X2))))/2=M2; eq3:=A/(G+1/(1/V+1/(Y+1/(1/Z+1/X3))))/2=M3; solve({eq1,eq2,eq3},{V,Y,Z}); It takes forever..
In Maple 11 Standard Interface, occasionally text will be entered in UTF-8 encoding. I have not exactly found a rhyme nor reason for this to occur. Sometimes, it will occur when I am formatting text in a paragraph to be more readable. Sometimes, it will occur when I copy output and paste it into a command line to be executed. Sometimes (and this one is the oddest I've found), it will happen when I go into a line with a string and add a \" inside the string. The UTF-8 encoding is becoming a very large problem, as when it occurs on a command line as in the second instance, Maple will very often interpret the command incorrectly.
I wonder why
a,b := NULL,NULL:
does not work, leading to an error of ambiguous multiple assignment, whereas
a := NULL:
b := NULL:
does work. Nothing critical of course, just mysterious, or what?
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.
First 52 53 54 55 56 57 58 Last Page 54 of 79