MaplePrimes Questions

Is there a way to use alternative plotting packages in Maple such as open source options: Plotly or Matplotlib?

https://plotly.com/python/

https://matplotlib.org/

Hello, I am trying to use the annotation plot option to display coordinates in a function such as the example below that I created and successfully executed in Maple Flow::

However, when I apply this to another function that I have created, I cannot get the coordinate annotations to display. It appears to me that the syntax is correct and matches my example above, but there is something not correct and I am not seeing the problem. If anybody has any suggestions, I would appreciate any help.

Plot_Annotation.zip

Thanks

Solving an ode, dsolve says it used exact method and gives two solutions as result (correct result).

But when asking dsolve to solve same ode but now specifying that it uses exact method (i.e. same one it used itself before), now it gives one solution only, not two as before.

Why is that? Should not both commands give same result? i.e. two solutions?

interface(version);

`Standard Worksheet Interface, Maple 2025.1, Linux, June 12 2025 Build ID 1932578`

SupportTools:-Version()

`The Customer Support Updates version in the MapleCloud is 29 and is the same as the version installed in this computer, created June 23, 2025, 10:25 hours Eastern Time.`

Physics:-Version()

`The "Physics Updates" version in the MapleCloud is 1881 and is the same as the version installed in this computer, created 2025, October 7, 16:4 hours Pacific Time.`

restart;

ode:=3*y(x)^3*x^2+y(x)^4+(3*x^3*y(x)^2+y(x)^4+4*x*y(x)^3)*diff(y(x),x) = 0;
DEtools:-odeadvisor(ode);
infolevel[dsolve]:=5:

3*y(x)^3*x^2+y(x)^4+(3*x^3*y(x)^2+y(x)^4+4*x*y(x)^3)*(diff(y(x), x)) = 0

[_exact, _rational]

sol:=dsolve(ode); #gives two solutions

Classification methods on request

Methods to be used are: [exact]

----------------------------

* Tackling ODE using method: exact

--- Trying classification methods ---

trying exact

<- exact successful

y(x) = 0, x*y(x)^4+x^3*y(x)^3+(1/5)*y(x)^5+c__1 = 0

maple_sol:=dsolve(ode,[exact]);  #why y=0 solution do not show here??

Classification methods on request

Methods to be used are: [exact]

----------------------------

* Tackling ODE using method: exact

--- Trying classification methods ---

trying exact

<- exact successful

x*y(x)^4+x^3*y(x)^3+(1/5)*y(x)^5+c__1 = 0

sol:=dsolve(ode); #gives two solutions again

Classification methods on request

Methods to be used are: [exact]

----------------------------

* Tackling ODE using method: exact

--- Trying classification methods ---

trying exact

<- exact successful

y(x) = 0, x*y(x)^4+x^3*y(x)^3+(1/5)*y(x)^5+c__1 = 0

 

 

Download why_different_solutions_maple_2025_1_oct_22_2025.mw

I've been using the $include statement when using code written in Visual Basic Editor for packages quite extensively, and this works very nice.

Would it be possible to outsource code to external files for code not in packages / libraries as well? If yes, how would this be done?

Probably an odd question, but please bear with me.

Mechanical design guy, previous Mathcad user. Liking Mapleflow alot. My issue is maple flow does not see any subfolders within the PDM "vault". The vault is designed to act with, and just like File Explorer. So I can paste mapleflow files into a subfolder within the vault, I can double click and open the file up. But when you "save as" the file, Mapleflow only sees the root directy. No other folder structure with the vault. So it makes it impossible to use the vaults functionality out side of manually copying and pasting files after the fact to where you want them. Note that he vault is desgned to use any file type. It's the Mapleflow application that's can't seem to see subfolders inside the "Vaults" root directory. Note that I've never see this with any other file type or application if many years of PDM use.

I am on the EMP plan so I'd sure be interested to have someone look at this?

Thanks for any insight!

I'm experiencing weird behaviour when dragging a plot generated from a DynamicSystems function.  If I hide the command, the plot stretches vertically rather than moving when I drag it.  If I don't hide the command, it drags normally.

Is anyone else observing this behaviour, or does it have to do with my setup?

I've attached a simple example flow file.Odd_Plot_Drag_Behaviour.zip

In the below I was looking for an explanation why D is not printed in italic whereas I does.

I

I

(1)

whattype(I)

complex(extended_numeric)

(2)

_local(I)

I

(3)

whattype(I)

symbol

(4)

D

D

(5)

whattype(D)

procedure

(6)

_local(D)

D

(7)

whattype(D)

symbol

(8)

NULL

After the local call D and I are both symbols but not printed the same way. Why is that?

Download local_D_still_roman.mw

i have out come with different coieficent  i can do by hand one by one seperate them and make them equal to zero but how i can make  list of equation  with leading term is apear  too not just the equation i have to know which related the equation and leading term too, then find unkown coiefficient?

system.mw

When solution was obtained using earlier call to solve with _EnvAllSolutions := true: set, then odetest givens internal error.

When _EnvAllSolutions := false: then no error.

Why? And is there a workaround so I can use _EnvAllSolutions := true: but have odetest still work?

interface(version);

`Standard Worksheet Interface, Maple 2025.1, Linux, June 12 2025 Build ID 1932578`

Physics:-Version();

`The "Physics Updates" version in the MapleCloud is 1881 and is the same as the version installed in this computer, created 2025, October 7, 16:4 hours Pacific Time.`

SupportTools:-Version();

`The Customer Support Updates version in the MapleCloud is 29 and is the same as the version installed in this computer, created June 23, 2025, 10:25 hours Eastern Time.`

 

Example fail when using _EnvAllSolutions := true:

 

restart;

kernelopts('assertlevel'=2):

ode:=diff(y(x),x) = ln(1+y(x)^2);
IC:=y(0)=0;
x0:=0;
sol:=y(x) = -sqrt(-1 + exp(RootOf(-Intat(-1/(2*tau*sqrt(-1 + exp(tau))*exp(-tau)), tau = _Z) + x + _C2)));

eq:=0=eval(rhs(sol),x=x0);
_EnvAllSolutions := true:
_EnvExplicit := true:
sol_C:=_C2=solve(eq,_C2);
sol:=eval(sol,sol_C);
odetest(%,[ode,IC])

diff(y(x), x) = ln(1+y(x)^2)

y(0) = 0

0

y(x) = -(-1+exp(RootOf(-Intat(-(1/2)/(tau*(-1+exp(tau))^(1/2)*exp(-tau)), tau = _Z)+x+_C2)))^(1/2)

0 = -(-1+exp(RootOf(-Intat(-(1/2)/(tau*(-1+exp(tau))^(1/2)*exp(-tau)), tau = _Z)+_C2)))^(1/2)

_C2 = Intat(-(1/2)*exp(tau)/(tau*(-1+exp(tau))^(1/2)), tau = (2*I)*Pi*_Z1)

y(x) = -(-1+exp(RootOf(-Intat(-(1/2)/(tau*(-1+exp(tau))^(1/2)*exp(-tau)), tau = _Z)+x+Intat(-(1/2)*exp(tau)/(tau*(-1+exp(tau))^(1/2)), tau = (2*I)*Pi*_Z1))))^(1/2)

Error, (in series/csgn) assertion failed

 

Example Works  when using _EnvAllSolutions := false:

 

restart;

kernelopts('assertlevel'=2):

ode:=diff(y(x),x) = ln(1+y(x)^2);
IC:=y(0)=0;
x0:=0;
sol:=y(x) = -sqrt(-1 + exp(RootOf(-Intat(-1/(2*tau*sqrt(-1 + exp(tau))*exp(-tau)), tau = _Z) + x + _C2)));

eq:=0=eval(rhs(sol),x=x0);
_EnvAllSolutions := false:
_EnvExplicit := true:
sol_C:=_C2=solve(eq,_C2);
sol:=eval(sol,sol_C);
odetest(%,[ode,IC])

diff(y(x), x) = ln(1+y(x)^2)

y(0) = 0

0

y(x) = -(-1+exp(RootOf(-Intat(-(1/2)/(tau*(-1+exp(tau))^(1/2)*exp(-tau)), tau = _Z)+x+_C2)))^(1/2)

0 = -(-1+exp(RootOf(-Intat(-(1/2)/(tau*(-1+exp(tau))^(1/2)*exp(-tau)), tau = _Z)+_C2)))^(1/2)

_C2 = Intat(-(1/2)*exp(tau)/(tau*(-1+exp(tau))^(1/2)), tau = 0)

y(x) = -(-1+exp(RootOf(-Intat(-(1/2)/(tau*(-1+exp(tau))^(1/2)*exp(-tau)), tau = _Z)+x+Intat(-(1/2)*exp(tau)/(tau*(-1+exp(tau))^(1/2)), tau = 0))))^(1/2)

[RootOf(Intat(exp(tau)/(tau*(-1+exp(tau))^(1/2)), tau = _Z)+2*x-Intat(exp(tau)/(tau*(-1+exp(tau))^(1/2)), tau = 0))-ln(exp(RootOf(Intat(exp(tau)/(tau*(-1+exp(tau))^(1/2)), tau = _Z)+2*x-Intat(exp(tau)/(tau*(-1+exp(tau))^(1/2)), tau = 0)))), 0]

 

 

 

 

Download odetest_fail_when_using_envAllsol_maple_2025_1_oct_21_2025.mw

I'm new to MapleFlow and I've been using the DynamicSystems package and I can't get the BodePlot function to display both the magnitude and the phase plot.  It only shows the magnitude plot.

I did some further testing by defining an array of plots and found the same thing, only the first entry at the [1,1] position displayed.

Are arrays of plots supported in MapleFlow or do I need to take a different approach?

At the beginning was this problem asked to 11th-12th Grade students:
 

Let C a vertical cylinder of radius RC = 10, and S a steel sphere of radius R = 4.
We place S into C and fill it with water up to the moment the water reaches the top of S.
Let V the volume of the water we used.
We then remove S and replaces it by another steel sphere S' with radius R' <> 4. Could it be that the free surface of the water reaches exactly the top of S'?
If it is so what is then the value of R'?

Mathematically does the equation (𝝅RC2) ⨯ (2R) - (4 𝝅RS3/3) = (𝝅RC2) ⨯ (2R') - (4/3 𝝅R'3), where RC = 10 and R = 4, have other strictly positive solutions than the trivial one R' = R?


The answer here is yes: R' = 5521/2 -2 ≅ 9.7473.. .

When I read this problem, I immediately asked myself the following question "Does a second sphere S' always exists whatever the values RC > 0 and R (0, RC]?".

In the attached worksheet I used two different Maple tools to answer this question:

  • firstly solve+assumptions plus plots:-inequal to visualize the (RC, R) domain where S' exists,
  • next solve/parametric to present another way to get the characterization of this same domain.

The problem is that solve+assumptions and plots:-inequal both give the same correct result but solve/parametric does not.
PlotsInequal_vs_SolveParametric.mw

For this specific problem solve/parametric fails finding the correct result.
Is that a bug or did I misuse it?

Thanks in advance

The nice addition added to Maple 2022 in this  post made it clear that c__1 and _C1 are the same under the cover.

But then why in Maple 2025.1 it does not give this?

I found this when I was trying to find constants of integrations in solution of an ode, and used 

                 indets(sol,And(symbol, suffixed(_C, nonnegint))); 

Which did not find the constants of integration, since I happened to have typed the solution using c__1 and not _C1, but I thought they are the same.

Did something change or I still dont understand well the difference between c__1 and _C1 ?

Worksheet below.

interface(version);

`Standard Worksheet Interface, Maple 2025.1, Linux, June 12 2025 Build ID 1932578`

SupportTools:-Version();

`The Customer Support Updates version in the MapleCloud is 29 and is the same as the version installed in this computer, created June 23, 2025, 10:25 hours Eastern Time.`

Physics:-Version();

`The "Physics Updates" version in the MapleCloud is 1881 and is the same as the version installed in this computer, created 2025, October 7, 16:4 hours Pacific Time.`

restart;

sol:= y(x)=-cos(x)/2+sin(x)/2+c__1*exp(-x);
indets(sol,And(symbol, suffixed(_C, nonnegint)));

y(x) = -(1/2)*cos(x)+(1/2)*sin(x)+c__1*exp(-x)

{}

sol:= y(x)=-cos(x)/2+sin(x)/2+c__1*exp(-x);
indets(sol,And(symbol, suffixed(c__, nonnegint)));

y(x) = -(1/2)*cos(x)+(1/2)*sin(x)+c__1*exp(-x)

{c__1}

sol:= y(x)=-cos(x)/2+sin(x)/2+_C1*exp(-x);
indets(sol,And(symbol, suffixed(c__, nonnegint)));

y(x) = -(1/2)*cos(x)+(1/2)*sin(x)+_C1*exp(-x)

{}

sol:= y(x)=-cos(x)/2+sin(x)/2+_C1*exp(-x);
indets(sol,And(symbol, suffixed(_C, nonnegint)));

y(x) = -(1/2)*cos(x)+(1/2)*sin(x)+_C1*exp(-x)

{_C1}

c__1 - _C1

c__1-_C1

addressof(c__1);

36893628553737883996

addressof(_C1);

36893628553623934140

Download why_c1_and_C1_not_same_oct_19_2025.mw

Update

Found out why. This only works if one calls dsolve() first.  Here is an example

sol:=dsolve(diff(y(x),x)=x)

y(x) = (1/2)*x^2+c__1

c__1 - _C1;

0

indets(sol,And(symbol, suffixed(_C, nonnegint)));

{c__1}

restart;

my_sol:=y(x)=(x^2)/2+c__1;

y(x) = (1/2)*x^2+c__1

c__1 - _C1;

c__1-_C1

indets(my_sol,And(symbol, suffixed(_C, nonnegint)));

{}

 

 

Download why_c1_and_C1_not_same_oct_19_2025_V1.mw

But this is really confusing. c__1 before calling dsolve is not the same as c__1 after calling dsolve.

It will be better if Maple is changed such that these work the same all the time without having to call dsolve() first.

With the new ribbon interface (and startup-page disabled) I need to open a new worksheet to make opening files by the recent document menu work.

Can someone reproduce this?

I write text in Trebuchet MS. When inserting footers I have noticed that the print preview displays page numbers not with the same font (most likely in Times New Roman).

How to change the font of page numbers and other items in headers and footers?

in here the author get a good outcome i did it but i don't know where is mistake and why the result is not same

pp.mw

pp1.mw

1 2 3 4 5 6 7 Last Page 3 of 2438