35 Reputation

4 years, 344 days

how to use Maple to prove an equation ba...

Maple 2019

Dear Maple friends~

Recently I am thinking a question about how to use Maple to prove an equation based on a known partial differential equationand its boundary conditions.

Although I can Prove it with hand computation ,it still has some difficulty and it will be really hard if its partial differential equation become more complex(As a matter of fact, it will happen).So I think of Maple and want to take advantage of computer.However,I get few ideas how to realize it .The details are as follows：

```alias(u=u(x,t)):
pde:=diff(u,t)-diff(u,x\$2,t)+4*u^2*diff(u,x)=3*u*diff(u,x)*diff(u,x\$2)+u^2*diff(u,x\$3);
N:=5;#actually N can be any positive integer!
bcs:=eval(u,x=-infinity)=0,seq(eval(diff(u,x\$ha),x=-infinity)=0,ha=1..N),eval(u,x=infinity)=0,seq(eval(diff(u,x\$ha),x=infinity)=0,ha=1..N);
E:=Int(u^4+2*u^2*diff(u,x)^2-diff(u,x)^4/3,x=-infinity..infinity);

#try to prove the following equation
diff(E,t)=0```

The written proof is as follows:

Therfore,I submit such a problem and look forward your solutions and suggestions sincerely~

How to regard a picture as a part not ba...

Maple 2018

Dear friends~

Recently I wanted to create some funny gif with Maple based on other interesting pictures but I met some problems:(1)I read many commands in ImageTools but few can aid me.(2)If I use “plot(,background=file_address)”,then the whole background will be filled with pictures but I just want it to be a part of my gif.I finally noticed that “plot3d(,image=file_address)”can realize my idea to some extents if I adjust orientation’s value  suitably.

However,I still think my operations can be improved(for example,my code consumes a fair amount of  memory) and there maybe one better approach to be good too. Hence I upload my code and sincerely look forward your suggestions and help~

```#Janesefor do it in 2019/4/15 13:20 with Maple2018~
with(plots):
image_file:="C:/Users/ysl-pc/Desktop/":
str:="有","朋","自","远","方","来","不","亦","乐","乎","?":
location_func,dy,dz:=3*sin(2*3.14/10*y),.75,.75:

display(seq(display(textplot3d([0,1,4.5,cat(str[1..ha])],align='right'),textplot3d([0,3.5,-4.5,"By Janesefor ~"],align='right'),plot3d([0,s,t],subs(y=ha-1,[s=y-dy..y+dy,t=location_func-dz..location_func+dz])[],image=cat(image_file,"smile.jpg"),axes=none,scaling=constrained,orientation=[180,90,-180],view=[default,0..10,-5..5],glossiness=0,lightmodel=light4)),ha=[`\$`(1..nops([str]))]),insequence=true);
Export(cat(image_file,"smile.gif"),%)```

smile.mw

how to display 1+2=3 as a result not 3=3...

Maple

Hello everyone ,I have an easy question:

x,y:=1,2;

x+y=3;

how to display 1+2=3 rather than 3+3?Are there some suggestions to offer?

Thanks a lot~

how to call some functions which I wrote...

Maple

Dear friends~I knew that I can copy each function's code into one worksheet bue it's tedious if I need to call many functions.So I want to find another approach with maple's statement.

Thank you ~

 Page 1 of 1
﻿