MaplePrimes Questions

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?

Maple 2022:

It appears that one can use push_back() with an empty DEQueue(), but not push_front().

Since the queue is double-ended and empty, this doesn't make much sense to me. So should this be considered a "bug"?

See the attached

  restart:

#
# This works
#
  A:=DEQueue();
  empty(A);  
  push_back(A,2);
  

module DEQueue () local num, head, tail, storage, dsp; option object; end module

 

true

 

module DEQueue () local num, head, tail, storage, dsp; option object; end module

(1)

#
# But this results in an error!
#
  B:=DEQueue();
  empty(B);
  push_front(B,2);

module DEQueue () local num, head, tail, storage, dsp; option object; end module

 

true

 

Error, invalid return value from method moduledefinition: 'NULL'

 

 

Download DEQueue_Prob.mw

I have just started using the GR functions available in Maple and have struggled to implement locally flat coordinates whilst using an arbitrary metric. I would like Maple to know that the first partial of g_ is 0 but that the second may not be. This knowledge would help simplify down some of the bulky expressions for the Riemann tensor in terms of g_. Any suggestions would be great as I have very little background knowledge with the submodule.

Thanks!

For_mapleprimes.mw

restart;
g := 9.81;
with(DEtools);
with(plots);

odeplot(dsolve({diff(x(t), t, t) = 0, diff(y(t), t, t) = -g + y(t)^2, x(0) = 1, y(0) = 0, D(x)(0) = 0, D(y)(0) = 0}, numeric), numpoints = 1000);

Hi, do you know why this plot is ragged? and my second question do you know how to get a single function x(t) or y(t) from this numeric solution instead getting parametrization plot [x(t),y(t)]? Thanks in advance.

Hi Im not sure how to solve this issue, I am new to maple and can't figure out what is going wrong. Any help is very much appreciated.

Thanks

 

I am trying to find the solution (\Psi) as approaches zero. However, after applying the limit the solution becomes zero. See the attached .mw file.limit.mw

A question by @Shameera  I was working on has disapeared meanwhile.
It was related to this previous thread 233822-How--To-Solve-This-Equation-By-Using but has not been displaced in it.
Did a regolaror do this or was it  @Shameera ?

Why do I get 2 wrong answers here?

I see that they are all false but the last answer is close enough for my purposes

restart

  with(RealDomain)

 

"`f__1`(x):=6.-sqrt(-x^(2)+8*x+9.)" = proc (x) options operator, arrow, function_assign; 6.-RealDomain:-sqrt(-RealDomain:-`^`(x, 2)+8*x+9.) end procNULL

  l__ength := solve(10 = int(f__1(x), x = 0 .. l), l) = 8.855609656, -.4725737205, 6.810993084NULL

10 = int(f__1(x), x = 0 .. l__ength[1]) = 10 = 16.02268001"(->)"false

10 = int(f__1(x), x = 0 .. l__ength[2]) = 10 = -1.586294894"(->)"false``

10 = int(f__1(x), x = 0 .. l__ength[3]) = 10 = 10.00000001"(->)"false 

 

NULL

Download Not_working.mw

I have a routine which returns a certain result. In the simplest case the result should be p[[1]].

The result is indeed p[[1]]. However, when I ask whether the result is equal to p[[1]], Maple says false.

Why does is not recognize these two things as being equal?

 

First 325 326 327 328 329 330 331 Last Page 327 of 2426