MaplePrimes Questions

is it possible to collect using pattern? For example, given 

How to tell Maple to collect on  r^power terms to produce

This came up in another forum here  and using that other software, it is possible to ask collect to collect on pattern r^_

Is there a way in Maple to collect on all powers of r in the above? Here is worksheet

A:=r^(2*a)+r^2*(1+a+r^(2*a)) + r + a*r;
B:=(1+a)*r+(1+a)*r^2+r^(2*a)+r^(2+2*a);

r^(2*a)+r^2*(1+a+r^(2*a))+r+a*r

(1+a)*r+(1+a)*r^2+r^(2*a)+r^(2+2*a)

simplify(A-B)

0

collect(A,r)

r^2*(1+a+r^(2*a))+(1+a)*r+r^(2*a)

collect(A,r,'distributed')

r^2*(1+a+r^(2*a))+(1+a)*r+r^(2*a)

collect(A,r,'recursive')

r^2*(1+a+r^(2*a))+(1+a)*r+r^(2*a)

collect(A,r,expand)

(1+a+(r^a)^2)*r^2+(1+a)*r+(r^a)^2

collect(A,r^(n::anything))

Error, (in collect) cannot collect r^n::anything

 


 

Download collect_using_pattern.mw

Using that other software:

 

In the below plot switches between to solutions of a RootOf expression when the plot range starts at zero.

plot3d on the other hand sticks to one root.

Why is that and how to get a plot starting at zero showing only one root?

restart

a := RootOf(JacobiCN(sqrt(2)*sqrt(alpha), (1/2)*sqrt(2)*_Z)^2*_Z^2+_Z^2-2)

RootOf(JacobiCN(2^(1/2)*alpha^(1/2), (1/2)*2^(1/2)*_Z)^2*_Z^2+_Z^2-2)

(1)

allvalues(a)

RootOf(JacobiCN(2^(1/2)*alpha^(1/2), (1/2)*2^(1/2)*_Z)^2*_Z^2+_Z^2-2)

(2)

plot(a, alpha = 0 .. .5)

 

eval(a, [alpha = 1/20])

RootOf(JacobiCN((1/20)*2^(1/2)*20^(1/2), (1/2)*2^(1/2)*_Z)^2*_Z^2+_Z^2-2)

(3)

evalf(allvalues(RootOf(JacobiCN((1/20)*2^(1/2)*20^(1/2), (1/2)*2^(1/2)*_Z)^2*_Z^2+_Z^2-2)))

1.024662619, -1.024662619

(4)

_ValuesMayBeLost

true

(5)

plot3d(a)

 

NULL

Download plot_of_RootOf.mw

Hello,

I have upgraded to maple 2025, but the ui fonts are too small and very thin. I went to Files -> Options -> Interface -> Default Zoom, thet sat it up to 150%. It only changed the document area not the UI options. This solution used to work with Maple 2024. I am on ubuntu 22.04.

i did my try to sketch the best shape of graph by existing code but the 3D shape in matlab is not what i am looking and is  not intresting for this kind of plot so i want use and design a better shape of 3D plot for thus contour  i need help for that 

plot-help.mw

I do not remember if this came up before. And this is all done in code, without looking at the screen.

Given sqrt(1-cos(x)^2), Maple's simplify does not return sqrt(sin(x)^2), instead it returns ugly result csgn(sin(x))*sin(x) which is correct ofcourse, but why not just return sqrt(sin(x)^2)?  As sqrt(sin(x)^2) is much easier to read than csgn(sin(x))*sin(x).

length of sqrt(1-cos(x)^2) is 29 and length of sqrt(sin(x)^2) is 21.

What Maple simplify seems to do is simplify sqrt(1-cos(x)^2) to sqrt(sin(x)^2) internally, but instead of stopping there, it keeps going and "simplifies" sqrt(sin(x)^2)  to csgn(sin(x))*sin(x).

How to make it stop at sqrt(sin(x)^2)?

Again, this is done in code. Not interactive. code uses simplify() command on most things. 

interface(version)

`Standard Worksheet Interface, Maple 2025.2, Windows 10, November 11 2025 Build ID 1971053`

A:=sqrt(1-cos(x)^2)

(1-cos(x)^2)^(1/2)

B:=sqrt(sin(x)^2)

(sin(x)^2)^(1/2)

length(A)

29

length(B)

21

simplify(A)

csgn(sin(x))*sin(x)

simplify(A,trig)

csgn(sin(x))*sin(x)

simplify(A,size)

(1-cos(x)^2)^(1/2)

simplify(A) assuming x>0 and x<Pi

sin(x)

 

 

Download simplify_dec_3_2025.mw

That other system does it better

Is it possible to make simplify do the same in Maple? 

DO not know if this is new in Maple 2025.2 or not as I have not looked yet if it is possible to install Maple 2025.1 on my new PC given Maple 2025.2 is already installed.

Found That Maple 2025.2 gives "Error, (in dsolve) numeric exception: division by zero" when asked to solve this ode using Lie symmetry.  The error comes when it tried to 

                        Computing canonical coordinates for the symmetry 

Even if this problem was in earlier Maple versions, this ofcourse should not happen.

interface(version);

`Standard Worksheet Interface, Maple 2025.2, Windows 10, November 11 2025 Build ID 1971053`

Physics:-Version();

`The "Physics Updates" version in the MapleCloud is 1882 and is the same as the version installed in this computer, created 2025, December 1, 6:58 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.`

libname;

"C:\Users\me\maple\toolbox\2025\Physics Updates\lib", "C:\Users\me\maple\toolbox\2025\Maple Customer Support Updates\lib", "C:\Program Files\Maple 2025\lib"

restart;

ode:=sin(x)*diff(y(x), x, x) + (2*sin(x) - cos(x))*diff(y(x), x) + (sin(x) - cos(x))*y(x) = exp(-x);

sin(x)*(diff(diff(y(x), x), x))+(2*sin(x)-cos(x))*(diff(y(x), x))+(sin(x)-cos(x))*y(x) = exp(-x)

dsolve(ode)

y(x) = exp(arcsin(cos(x)))*c__2+exp(arcsin(cos(x)))*cos(x)*c__1+exp(arcsin(cos(x)))*(-(Int(csc(x)^2*exp(-arcsin(cos(x))-x), x))*cos(x)+Int(cot(x)*csc(x)*exp(-arcsin(cos(x))-x), x))

dsolve(ode,Lie)

Error, (in dsolve) numeric exception: division by zero

 

 

Download division_by_zero_dsolve_maple_2025_2_on_dec_2_2025.mw

I would like to change the document and worksheet colour in Maple 2025. I would like to darken or change the color of the icons and text in the tool bar. I have searched everywhere and can't seem to locate it. As currently configured, it is hard on the eyes; my eyesight is not the best. I beleive there is a softer yellow colour that can be picked, which I believe is called classic. Thank you

I am using Maple 2025.  I have the following in my ini file:

with(LinearAlgebra):
    with(VectorCalculus):
    with(plottools):
    with(plots):
    with(DocumentTools):
    with(Units[Simple]):
    with(StringTools):
    stoperror(all):
   interface(displayprecision = 4):
    _EnvUseHeavisideAsUnitStep := true:  
    Digits := 10:

I want to set my default number formatting to "Engineering."  I cannot find where or how to do this, either in the menues or the an ini file command.  I can do it in the context panel line by line, but want it to be global and automatic.

Thanks in advance for your assistance.

I have an expression with y,y',y''. I found that I had to use collect first to make Maple simplifies it more.

Why is that? Is this expected?

interface(version);

`Standard Worksheet Interface, Maple 2025.2, Windows 10, November 11 2025 Build ID 1971053`

B:=-(-t^2+1)*(-diff(y(t),t$2)*(-t^2+1)^(1/2)+diff(y(t),t)/(-t^2+1)^(1/2)*t)-(2*(-t^2+1)^(1/2)-t)*diff(y(t),t)*(-t^2+1)^(1/2)+((-t^2+1)^(1/2)-t)*y(t);

-(-t^2+1)*(-(diff(diff(y(t), t), t))*(-t^2+1)^(1/2)+(diff(y(t), t))*t/(-t^2+1)^(1/2))-(2*(-t^2+1)^(1/2)-t)*(diff(y(t), t))*(-t^2+1)^(1/2)+((-t^2+1)^(1/2)-t)*y(t)

simplify(B);

((diff(diff(y(t), t), t))*t^4+2*(diff(y(t), t))*t^2*(-t^2+1)^(1/2)-2*(diff(diff(y(t), t), t))*t^2-y(t)*t^2-y(t)*(-t^2+1)^(1/2)*t-2*(diff(y(t), t))*(-t^2+1)^(1/2)+diff(diff(y(t), t), t)+y(t))/(-t^2+1)^(1/2)

B:=collect(B,{diff(y(t),t$2),diff(y(t),t),y(t)},'distributed'):
simplify(B);

2*(t^2-1)*(diff(y(t), t))+((-t^2+1)^(1/2)-t)*y(t)+(-t^2+1)^(3/2)*(diff(diff(y(t), t), t))


Download why_collect_is_needed_to_simplify_more_maple_2025_2_nov_30_2025.mw

Notice how much simpler the result when doing collect first.

I've seen many here recommend using the screen reader for Maple 2025. So this is first time I tried it.

Clicked on this second icon in my windows 10 start menu

Maple came up using the old UI, which is good:

But here comes the big problem. The file->Open menu does not work. It automatically opened in location which is not what I want. I wanted to navigate to different place on my PC. But anything I click on just generates loud beep and does nothing. Can't type anything to change location either.

So can't open any file. Not only that, It is stuck and can't even close the windows. Can't get out. Everything is stuck. 

It could be because I have 2 monitors. I had this open on the second monitor on the right. Everything on the second monitor now do not respond like Maple. Luckily, on the left monitor I was able to start task manager and kill Maple in order to get out of this hang.    

Basically screen reader does not work at all for me. If I can't open a file.

It could be due to using 2 monitors. I do not know.

Does file open work for others?

Here is small movie.

I could not get the max() function to work with units.  I had to strip out the units, do the max() and then add them back in.  It seems overly complicated and wrong.  I am sure there is a better way.

Could someone please check if Maple 2025.1 gives this error?  I only have Maple 2025.2 (is there a way to install Maple 2025.1 on same PC, after installing Maple 2025.2? Will Maple complain or remove Maple 2025.2 if I do this? Can I use same activation key to do this? I only have one.

Will call support and ask them on monday. This way I can check myself from now on.

Calling dsolve on an ode gives Error, (in dsolve) improper op or subscript selector which comes from 

             Computing canonical coordinates for the symmetry [x*(x^2+y^2+a), -y*(-x^2-y^2+a)]

Worksheet below. 

restart;

interface(version);

`Standard Worksheet Interface, Maple 2025.2, Windows 10, November 11 2025 Build ID 1971053`

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

libname;

"C:\Users\me\maple\toolbox\2025\Physics Updates\lib", "C:\Users\me\maple\toolbox\2025\Maple Customer Support Updates\lib", "C:\Program Files\Maple 2025\lib"

ode:=x*y(x)*diff(y(x),x)^2+(a+x^2-y(x)^2)*diff(y(x),x)-y(x)*x = 0;

x*y(x)*(diff(y(x), x))^2+(a+x^2-y(x)^2)*(diff(y(x), x))-y(x)*x = 0

dsolve(ode);

Error, (in dsolve) improper op or subscript selector

infolevel[dsolve]:=5;

5

dsolve(ode);

Methods for first order ODEs:

   *** Sublevel 2 ***

   Methods for first order ODEs:

   -> Solving 1st order ODE of high degree, 1st attempt

   trying 1st order WeierstrassP solution for high degree ODE

   trying 1st order WeierstrassPPrime solution for high degree ODE

   trying 1st order JacobiSN solution for high degree ODE

   trying 1st order ODE linearizable_by_differentiation

   trying differential order: 1; missing variables

   trying simple symmetries for implicit equations

   Successful isolation of dy/dx: 2 solutions were found. Trying to solve each resulting ODE.

      *** Sublevel 3 ***

      Methods for first order ODEs:

      --- Trying classification methods ---

      trying homogeneous types:

      trying exact

      Looking for potential symmetries

      trying an equivalence to an Abel ODE

      trying 1st order ODE linearizable_by_differentiation

   -> Solving 1st order ODE of high degree, Lie methods, 1st trial

    -> Computing symmetries using: way = 3

[x^3+x*y^2+a*x, x^2*y+y^3-a*y]

    <- successful computation of symmetries.

 1st order, trying reduction of order with given symmetries:

[x*(x^2+y^2+a), -y*(-x^2-y^2+a)]

   1st order, trying the canonical coordinates of the invariance group

   -> Computing canonical coordinates for the symmetry [x*(x^2+y^2+a), -y*(-x^2-y^2+a)]

Error, (in dsolve) improper op or subscript selector

 

 

Download dsolve_gives_parsing_error_maple_2025_2_nov_20_2025.mw

This internal error happens even if Physics or Support tools are not in libname.

On Windows 11.

When I insert a link to a worksheet Maple 2025 crashes (also with the Screen Reader version).

When I click on a hyperlink to a workbook in a document created with Maple 2024, Maple 2025 crashes.

Is this reproducible?

Edit:

Also opening a workbook crashes Maple 2025 (i.e. no hyperlinks involved)

i did simplify and each time work but this time is give me another thing can anyone find what is problem?

pdetest2.mw

Do not know if this is new or not.

I have found about 12 Maple crashes so far in just 2 days running a test in Maple 2025.2

But this one I am not sure if it is new or not as never seen it before.

Could someone please just run this in Maple 2025.1 and see if you get same crash? So I know if it is new or not. Only have Maple 2025.2 on this new PC.

Calling solve causes Maple server to crash. Save your work before just in case.

restart;

interface(version);

`Standard Worksheet Interface, Maple 2025.2, Windows 10, November 11 2025 Build ID 1971053`

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

sol:=ln( (y-1)^(1/3)* (y^2+y+1)^(1/3) ) - ln(y) = 2/5* ln(t^2+1)+_C1;

ln((y-1)^(1/3)*(y^2+y+1)^(1/3))-ln(y) = (2/5)*ln(t^2+1)+_C1

infolevel[solve]:=5;

5

solve( sol,y);

Main: Entering solver with 1 equation in 1 variable

Dispatch: dispatching to Radicals handler

Transformer:   solving for linear equation in y

Recurse: recursively solving 1 equations and 4 inequations in 1 variables

Dispatch: dispatching to ln handler (extension)

Dispatch: logarithm substitution _S000002 = ln(_S000001)

Recurse: recursively solving 1 equations and 4 inequations in 1 variables

Dispatch: dispatching to ln handler (extension)

Dispatch: logarithm substitution _S000003 = ln(t^2+1)

Transformer:   solving for linear equation in _S000003

Recurse: recursively solving 1 equations and 3 inequations in 1 variables

Dispatch: dispatching to ln handler (extension)

Dispatch: logarithm substitution _S000004 = ln(exp(_S000002)^3+1)

Recurse: recursively solving 2 equations and 3 inequations in 2 variables

Dispatch: dispatching to ln handler (extension)

Dispatch: logarithm substitution _S000005 = ln(exp(_S000002)^6+3*exp(_S000002)^3+3)

Recurse: recursively solving 3 equations and 3 inequations in 3 variables

Dispatch: dispatching to Exponentials handler

Transformer:   solving for linear equation in _S000005

Recurse: recursively solving 3 equations and 4 inequations in 4 variables

Dispatch: dispatching to Exponentials handler

Transformer:   solving for linear equation in _S000004

Recurse: recursively solving 3 equations and 5 inequations in 5 variables

Dispatch: dispatching to Exponentials handler

Transformer:   solving for linear equation in _S000002

Recurse: recursively solving 3 equations and 6 inequations in 6 variables

Dispatch: dispatching to Rename handler

Dispatch: renaming exp(5/2*_C1) = _S000012, exp(-5/2*_C1) = 1/_S000012

Recurse: recursively solving 3 equations and 6 inequations in 6 variables

Dispatch: handling polynomials of the form a*x^n-b

Dispatch: dispatching to PolynomialSystem handler

Main: polynomial system split into 1 parts under preprocessing

Main: using RegularChains based methods

SolverVariableOrder: using the variable order  _S000008 > _S000006 > _S000010

TriangularDecomposition: using deterministic algorithm for decomposition

Download calling_solve_crashes_maple_2025_2_nov_28_2025.mw

Note that this crash happens even when removing Physics update and SupportTools from libname.

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