MaplePrimes Questions

Hi there,

Is there an easy way to redefine the Dgamma matrices in the Physics package without creating a custom function? I would like to use a form as shown below.

with i running from 1 to 3, i.e. specifying space coordinates and sigma_i being a 2x2 Pauli matrix. The zeroes are 2x2 zero matrices.

where I is a 2x2 identity matrix and again the zeroes are 2z2 zero matrices.

Thanks!

After simplifying an expression, I get different numerical results. The first one (9717.251005) should be correct. The simplification also seems correct.

Why do I get a wrong evaluation result after simplification? Is this a numerical problem?

I'm using Maple 2021 and this my code:

I have a function which describes the complex reflection coefficient of a structure with respect to frequency.  One or more variables may control the function, and I want to find the set of variables which yield the lowest maxima in frequency response, over a given range of frequencies.

For a simple example relying only on a single variable "Z", it would be something like this:

NLPSolve(

NLPSolve(abs(Gamma),f=f1..f2,maximize),

Z=Z[1]..Z[N],

initialpoint = [Z=Z[2]]

);

I suspect I am having two problems with the above:

1.  Without some numeric starting point for Z, the nested NLPSolve(Gamma,f=f1..f2,maximize), Gamma is failing to resolve to a maxima in the range f = f1..f2.  Testing NLPSolve(subs(Z=1,abs(Gamma)),f=0..1,maximize); works just fine, but not without fixing Z to some undesired point.

2.  Maple seems to be unhappy about the inclusion of abs(), stating "abs is not differentiable at non-real arguments".  However, a test of another simpler complex function did not bring about the same complaint, so perhaps this is a misleading error due to the poor structure of my command.

Help!

Thank you.

I have reported this to Maplesoft. There is a problem (on LInux 20.2) that has to do with java. I have (well, I had) a large project. Around 1500 lines when I cut and pasted into a word processor. (No, I was not editing in the word processor, I just needed a way to put a number on the size that was better than, "quite large". )

I do my editing in 2D math. The other is not an option, and I kind of doubt it would matter.

There is a problem in 2022,  in which,  after working in the editor for 3-5 hours, it gets very slow. CPU use will go into the 80% range. Java will have 1.7 GB or RAM allocated to it. The editor  becomes impossible to use. The only cure is to save the file, then re-open it after shutting down Maple. If Java goes away in system monitor (Linux version of Taskmanager) then it will work fine when it comes back. This appears to me to be a bug in handling of java, in which Maple never lets go of memory, and some piece of code goes off into all that RAM to do something. I have waited as long as half an hour. That time I gave up and killed the java task which ended Maple.

Just now, what prompted this post, in addition, is that when I brought Maple back up for the (2-3 times per day complete restart due to this problem) the file I had just saved is now corrupted, and truncated. A lot of work is gone, and no way to retrieve it I know of. The file is now less than half the size it was (43% of the size of the previous version number).

I told support that this release is acting like beta software, despite being the regular release.

Be careful. Increment your saved versions of .mw files regularly. Save regularly. Expect problems.

Configuration: Intel i7 CPU, 64 GB RAM. Note that earlier versions of Maple sometimes got memory use up to 12 GB on other sheets. I have not noticed what Java was using prior to this.

I noticed that someone changed this to a "performance" tag. It is not really about performance. This shows up as the editor is a bit slow, and then suddenly the editor is off in the weeds for a while. This is a serious memory management problem. It is also a bug that killed a day's work, and if I hadn't been lucky more than a day. Maple should not destroy files when it writes them out.

Please don't arbitrarily recategorize a bug without fully reading the problem.

The uploaded worksheet attempts to determine arc lengths of an ellipse by two methods. Why do their results differ?

ArcLength_of_Ellipse.mw

I was able to fix the problem. But I wanna use if statements to differentiate between complex and real roots in the attached file below:SOLVING_SYS.mw.

Trying to teach my granddaughter complex math and I was trying to show the use of the division of two complex numbers.

such as (8x+3i)/(5x-i).  I could not get maple to give an answer.  There is a way to do this put for the life of me I couldn't find it at the time. 

Can somebody tell me how to do this operation.

Thanks

Bill

How i can i write the code for the last equation which includes summations and one product in the picture? tnx for the help

Hello,

Do you know a command which give the time Maple need to result a problem ....??
Thank you

Hello. I have the PDE

u_t + u_xxx = 0

And the function u(x,0) = 2 / cosh2(x)

I want to plot it on the u(x,t) - x axes on 2D plane. And then make more plots as time passes in order to show that u(x,0) disperses. 

Thanks for any help.

For making a Maple package, an mla file, I were always using a same 4 lines code in a Maple worksheet and it was fine, but in Maple 2022 I receive an error message instead with the same 4 lines of code. Here is a simple example. Let's say I have a directory on my computer "C:\Home\Maple projects\Test_package", inside this directory I have one file "main.mpl" and a folder called "Functions" with a single file "Test.mm". The content of these two files are in below.

main.mpl

# This is just to test savelib at Maple 2022

unprotect('testSavelin');

testSavelib := module()
	option package;
	description "This is just a test.";
	export ModuleCopy, ModuleApply, ModulePrint;
	export Test;

kernelopts( includepath = currentdir() ):
$include "Functions\\Test.mm"

end module;

protect('testSavelib');

Test.mm

Test := proc( x :: integer )
	description "prints a message saying what integer you have given to this function.";
	printf("You have inserted the integer %d.\n", x);
end proc:

Now I open a Maple worksheet and do the followings.

kernelopts(includepath="C:\\Home\\Maple projects\\Test_package"):
read("C:\\Home\\Maple projects\\Test_package\\main.mpl");
LibraryTools:-Create("C:\\Home\\Maple projects\\Test_package\\test.mla");
savelib('testSavelib'," C:\\Home\\Maple projects\\Test_package\\test.mla ");

On previous versions of Maple the result would be a test.mla file with the testSavelib package in it. But in Maple 2022 I receive an error message instead, and the test.mla is an empty mla.

Error, could not open ` C:\Home\Maple projects\CAD project\test.mla \testSavelib.m` for writing

Here is a screenshot.

Maple is usually very fast, and I recently upgraded to 2022 edition. 

However in the new version, I tried to solve this equation here. 
solve(1 + 0.15 = (1 + r__x)^1.28858)

It took Maple 2022, 46 to 118 sec to come up with a solution to the above. I run Windows 11 latest version, have 32 GB of ram and dual NVME disks in my laptop. 

Windows 11 uses almost a Gigabyte of memory do this calculation. 

So what could be wrong? Is mserver not working proberly?

solve(9*log10(x + 1) = root[3](x), x);
Warning, solutions may have been lost

How come maple can't solve this equation with the standard command?

And what can I do to find all the solutions?

EDIT: For some reason I can't repply.
@Kitonum , thanks for answer.

I suspect there may be more real solutions than the ones in your example, but if I change the range some of those in your example goes missing. Is that a bug?

Bonjour,

Comment transformer cette suite de résultat que renvoie Maple, en liste unique :

              

                               1

                               1

                               1

                               1

                               1

                               1

                               1

                               1

                               1

                               1

                               1

                               2

                               3

                               1

                               4

                               1

                               11

                               9

                               7


En une liste unique telle que :

L: = [
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 4,1, 11, 9, 7 ]

Merci 


HELLO,

How to transform this result in one list : 


                                1

                               1

                               1

                               1

                               1

                               1

                               1

                               1

                               1

                               1

                               1

                               2

                               3

                               1

                               4

                               1

                               11

                               9

                               7


In a simple list such that :

L: = [
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 4,1, 11, 9, 7 ]

Thank You

Hi,

I want to extract the highest linear and non-linear terms in an equation without their coefficients

How I can do it?

For example in the following equation, the highest linear and nonlinear without coefficients are diff(u(T),T$3) and u(T)*diff(u(T),T), respectively.

w*a*diff(u(T),T)+a*u(T)*diff(u(T),T)-(b^2)*a*w*diff(u(T),T$3)=0

Thanks in advance.

First 14 15 16 17 18 19 20 Last Page 16 of 2119