Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

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:

Applications to develop exercises on systems of equations using the technique of determinants, Gauss and Crammer. For science and engineering students. In spanish.

Determinantes_Gauss_Crammer.mw

Lenin Araujo

Ambassador of Maple

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.

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

ArcLength_of_Ellipse.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.

How can the Cartesian Product of sets be implemented recursively in Maple?
Let k be a positive integer and Si , i=1,...k be nonempty finite sets.
How can Mk:=S1 x S2 x ...x Sk be constructed with Maple by recursion?

First 202 203 204 205 206 207 208 Last Page 204 of 2097