Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

How to explain this strange behavior?   odetest(sol,ode) does not give zero. But odetest(sol,[ode,IC]) gives [0,0]

Same solution and same ode. Why adding IC, now odetest says solution verifies the ode, but without adding IC, it does not give zero right away. I know I can simplify the result to zero. But the point is that it should have given zero right away, because that is what it did when adding IC.

Should it not have given zero in first case also?

Can't upload worksheet due to security. Here is code and screen shot

ode := diff(y(x),x) + cos(1/exp(2*x))*y(x) = sin(1/exp(x));
IC := a*D(y)(x0)+c*y(x0) = b*y0;
sol:=y(x) = ((-cos(exp(-2*x0))*a + c)*Int(sin(exp(-tau))*exp(-1/2*Ci(exp(-2*tau))), tau = 0 .. x0) + Int(sin(exp(-tau))*exp(-1/2*Ci(exp(-2*tau))), tau = 0 .. x)*(cos(exp(-2*x0))*a - c) + exp(-1/2*Ci(exp(-2*x0)))*(a*sin(exp(-x0)) - b*y0))*exp(1/2*Ci(exp(-2*x)))/(cos(exp(-2*x0))*a - c);

odetest(sol,ode);

#not zero

#now

odetest(sol,[ode,IC]);

#gives [0,0]

 

By symbolic regression I mean an algorithm that determines a model (fit function) that fits best to a data set.

Are there any commands, packages, libraries or MaplesPrime post that are helpful in this regrad?

Edit: For the data set below a symbolic regression algortihm returns "simple" models (formulas)  that use a "minimal" number of terms.

data_set := [[0, 0.], [.1, -0.192545973e-2], [.2, -0.57548536e-2], [.3, -0.93691571e-2], [.4, -0.116497299e-1], [.5, -0.122768958e-1], [.6, -0.114535757e-1], [.7, -0.96377097e-2], [.8, -0.73398894e-2], [.9, -0.50026258e-2], [1.0, -0.29489933e-2], [1.1, -0.13773796e-2], [1.2, -0.3802267e-3], [1.3, 0.288809e-4], [1.4, -0.1112403e-3], [1.5, -0.7312233e-3], [1.6, -0.1747389e-2], [1.7, -0.3072868e-2], [1.8, -0.4624615e-2], [1.9, -0.6327418e-2], [2.0, -0.8115810e-2], [2.1, -0.9934627e-2], [2.2, -0.11738712e-1], [2.3, -0.13492153e-1], [2.4, -0.15167275e-1], [2.5, -0.16743558e-1], [2.6, -0.18206567e-1], [2.7, -0.19546942e-1], [2.8, -0.20759491e-1], [2.9, -0.21842382e-1], [3.0, -0.22796451e-1], [3.1, -0.23624612e-1], [3.2, -0.24331323e-1], [3.3, -0.24922213e-1], [3.4, -0.25403690e-1], [3.5, -0.25782692e-1], [3.6, -0.26066441e-1], [3.7, -0.26262258e-1], [3.8, -0.26377439e-1], [3.9, -0.26419110e-1], [4.0, -0.26394196e-1], [4.1, -0.26309316e-1], [4.2, -0.26170744e-1], [4.3, -0.25984403e-1], [4.4, -0.25755853e-1], [4.5, -0.25490243e-1], [4.6, -0.25192364e-1], [4.7, -0.24866612e-1], [4.8, -0.24517040e-1], [4.9, -0.24147342e-1], [5.0, -0.23760880e-1], [5.1, -0.23360701e-1], [5.2, -0.22949566e-1], [5.3, -0.22529948e-1], [5.4, -0.22104070e-1], [5.5, -0.21673916e-1], [5.6, -0.21241260e-1], [5.7, -0.20807663e-1], [5.8, -0.20374513e-1], [5.9, -0.19943032e-1], [6.0, -0.19514256e-1], [6.1, -0.19089134e-1], [6.2, -0.18668453e-1], [6.3, -0.18252883e-1], [6.4, -0.17843021e-1], [6.5, -0.17439353e-1], [6.6, -0.17042293e-1], [6.7, -0.16652162e-1], [6.8, -0.16269229e-1], [6.9, -0.15893717e-1], [7.0, -0.15525760e-1], [7.1, -0.15165506e-1], [7.2, -0.14812994e-1], [7.3, -0.14468255e-1], [7.4, -0.14131340e-1], [7.5, -0.13802188e-1], [7.6, -0.13480766e-1], [7.7, -0.13167023e-1], [7.8, -0.12860860e-1], [7.9, -0.12562203e-1], [8.0, -0.12270906e-1], [8.1, -0.11986869e-1], [8.2, -0.11709977e-1], [8.3, -0.11440094e-1], [8.4, -0.11177068e-1], [8.5, -0.10920752e-1], [8.6, -0.10671030e-1], [8.7, -0.10427731e-1], [8.8, -0.10190686e-1], [8.9, -0.9959797e-2], [9.0, -0.9734839e-2], [9.1, -0.9515736e-2], [9.2, -0.9302291e-2], [9.3, -0.9094362e-2], [9.4, -0.8891836e-2], [9.5, -0.8694538e-2], [9.6, -0.8502346e-2], [9.7, -0.8315094e-2], [9.8, -0.8132637e-2], [9.9, -0.7954917e-2], [10.0, -0.7781747e-2]]

[[0, 0.], [.1, -0.192545973e-2], [.2, -0.57548536e-2], [.3, -0.93691571e-2], [.4, -0.116497299e-1], [.5, -0.122768958e-1], [.6, -0.114535757e-1], [.7, -0.96377097e-2], [.8, -0.73398894e-2], [.9, -0.50026258e-2], [1.0, -0.29489933e-2], [1.1, -0.13773796e-2], [1.2, -0.3802267e-3], [1.3, 0.288809e-4], [1.4, -0.1112403e-3], [1.5, -0.7312233e-3], [1.6, -0.1747389e-2], [1.7, -0.3072868e-2], [1.8, -0.4624615e-2], [1.9, -0.6327418e-2], [2.0, -0.8115810e-2], [2.1, -0.9934627e-2], [2.2, -0.11738712e-1], [2.3, -0.13492153e-1], [2.4, -0.15167275e-1], [2.5, -0.16743558e-1], [2.6, -0.18206567e-1], [2.7, -0.19546942e-1], [2.8, -0.20759491e-1], [2.9, -0.21842382e-1], [3.0, -0.22796451e-1], [3.1, -0.23624612e-1], [3.2, -0.24331323e-1], [3.3, -0.24922213e-1], [3.4, -0.25403690e-1], [3.5, -0.25782692e-1], [3.6, -0.26066441e-1], [3.7, -0.26262258e-1], [3.8, -0.26377439e-1], [3.9, -0.26419110e-1], [4.0, -0.26394196e-1], [4.1, -0.26309316e-1], [4.2, -0.26170744e-1], [4.3, -0.25984403e-1], [4.4, -0.25755853e-1], [4.5, -0.25490243e-1], [4.6, -0.25192364e-1], [4.7, -0.24866612e-1], [4.8, -0.24517040e-1], [4.9, -0.24147342e-1], [5.0, -0.23760880e-1], [5.1, -0.23360701e-1], [5.2, -0.22949566e-1], [5.3, -0.22529948e-1], [5.4, -0.22104070e-1], [5.5, -0.21673916e-1], [5.6, -0.21241260e-1], [5.7, -0.20807663e-1], [5.8, -0.20374513e-1], [5.9, -0.19943032e-1], [6.0, -0.19514256e-1], [6.1, -0.19089134e-1], [6.2, -0.18668453e-1], [6.3, -0.18252883e-1], [6.4, -0.17843021e-1], [6.5, -0.17439353e-1], [6.6, -0.17042293e-1], [6.7, -0.16652162e-1], [6.8, -0.16269229e-1], [6.9, -0.15893717e-1], [7.0, -0.15525760e-1], [7.1, -0.15165506e-1], [7.2, -0.14812994e-1], [7.3, -0.14468255e-1], [7.4, -0.14131340e-1], [7.5, -0.13802188e-1], [7.6, -0.13480766e-1], [7.7, -0.13167023e-1], [7.8, -0.12860860e-1], [7.9, -0.12562203e-1], [8.0, -0.12270906e-1], [8.1, -0.11986869e-1], [8.2, -0.11709977e-1], [8.3, -0.11440094e-1], [8.4, -0.11177068e-1], [8.5, -0.10920752e-1], [8.6, -0.10671030e-1], [8.7, -0.10427731e-1], [8.8, -0.10190686e-1], [8.9, -0.9959797e-2], [9.0, -0.9734839e-2], [9.1, -0.9515736e-2], [9.2, -0.9302291e-2], [9.3, -0.9094362e-2], [9.4, -0.8891836e-2], [9.5, -0.8694538e-2], [9.6, -0.8502346e-2], [9.7, -0.8315094e-2], [9.8, -0.8132637e-2], [9.9, -0.7954917e-2], [10.0, -0.7781747e-2]]

(1)

plots:-pointplot([[0, 0.], [.1, -0.192545973e-2], [.2, -0.57548536e-2], [.3, -0.93691571e-2], [.4, -0.116497299e-1], [.5, -0.122768958e-1], [.6, -0.114535757e-1], [.7, -0.96377097e-2], [.8, -0.73398894e-2], [.9, -0.50026258e-2], [1.0, -0.29489933e-2], [1.1, -0.13773796e-2], [1.2, -0.3802267e-3], [1.3, 0.288809e-4], [1.4, -0.1112403e-3], [1.5, -0.7312233e-3], [1.6, -0.1747389e-2], [1.7, -0.3072868e-2], [1.8, -0.4624615e-2], [1.9, -0.6327418e-2], [2.0, -0.8115810e-2], [2.1, -0.9934627e-2], [2.2, -0.11738712e-1], [2.3, -0.13492153e-1], [2.4, -0.15167275e-1], [2.5, -0.16743558e-1], [2.6, -0.18206567e-1], [2.7, -0.19546942e-1], [2.8, -0.20759491e-1], [2.9, -0.21842382e-1], [3.0, -0.22796451e-1], [3.1, -0.23624612e-1], [3.2, -0.24331323e-1], [3.3, -0.24922213e-1], [3.4, -0.25403690e-1], [3.5, -0.25782692e-1], [3.6, -0.26066441e-1], [3.7, -0.26262258e-1], [3.8, -0.26377439e-1], [3.9, -0.26419110e-1], [4.0, -0.26394196e-1], [4.1, -0.26309316e-1], [4.2, -0.26170744e-1], [4.3, -0.25984403e-1], [4.4, -0.25755853e-1], [4.5, -0.25490243e-1], [4.6, -0.25192364e-1], [4.7, -0.24866612e-1], [4.8, -0.24517040e-1], [4.9, -0.24147342e-1], [5.0, -0.23760880e-1], [5.1, -0.23360701e-1], [5.2, -0.22949566e-1], [5.3, -0.22529948e-1], [5.4, -0.22104070e-1], [5.5, -0.21673916e-1], [5.6, -0.21241260e-1], [5.7, -0.20807663e-1], [5.8, -0.20374513e-1], [5.9, -0.19943032e-1], [6.0, -0.19514256e-1], [6.1, -0.19089134e-1], [6.2, -0.18668453e-1], [6.3, -0.18252883e-1], [6.4, -0.17843021e-1], [6.5, -0.17439353e-1], [6.6, -0.17042293e-1], [6.7, -0.16652162e-1], [6.8, -0.16269229e-1], [6.9, -0.15893717e-1], [7.0, -0.15525760e-1], [7.1, -0.15165506e-1], [7.2, -0.14812994e-1], [7.3, -0.14468255e-1], [7.4, -0.14131340e-1], [7.5, -0.13802188e-1], [7.6, -0.13480766e-1], [7.7, -0.13167023e-1], [7.8, -0.12860860e-1], [7.9, -0.12562203e-1], [8.0, -0.12270906e-1], [8.1, -0.11986869e-1], [8.2, -0.11709977e-1], [8.3, -0.11440094e-1], [8.4, -0.11177068e-1], [8.5, -0.10920752e-1], [8.6, -0.10671030e-1], [8.7, -0.10427731e-1], [8.8, -0.10190686e-1], [8.9, -0.9959797e-2], [9.0, -0.9734839e-2], [9.1, -0.9515736e-2], [9.2, -0.9302291e-2], [9.3, -0.9094362e-2], [9.4, -0.8891836e-2], [9.5, -0.8694538e-2], [9.6, -0.8502346e-2], [9.7, -0.8315094e-2], [9.8, -0.8132637e-2], [9.9, -0.7954917e-2], [10.0, -0.7781747e-2]])

 

CurveFitting:-Interactive(data_set)

NULL

Download regression_dataset.mw

I do not understand the following typesetting example from this helpage.

with(Typesetting)

interface(typesetting = extended)

Typeset(BesselJ(v, x))

BesselJ(v, x)

(1)

NULL

Same output without Typeset

BesselJ(v, x)

BesselJ(v, x)

(2)

NULL

Download Typeset.mw

Why the Typeset call when the output does not change. Is the helppage maybe broken? It says Examples but lists only one.

If MapleSoft read this: Some more typesetting examples would be helpfull.

I recently read something in another forum about solving a simple ordinary differential equation as an initial value problem (file attached). An unexpected solution behavior was interpreted there as a weakness of the software. However, upon closer inspection, the cause is different, and as a software novice, I cannot determine it myself.

Therefore, my question is:

Is there a way, using Maple, to check the Lipschitz condition in the neighborhood of the initial value before starting the solution of an explicit first-order system of differential equations as an initial value problem?

DGL_test.mw

i try to find the parameter in this equation but some issues show up which i am not sure i can fix that or not? there is any way for finding thus parameters?

test-F-p.mw

Could someone please check if these are new in Maple 2025.2? I am on windows 10.

eqs:=[_C1+_C2 = 0, _C1*exp(3^(1/2)*((cos(1/6*Pi*3^(1/2))-1)*(cos(1/6*Pi*3^(1/2))+1))^(1/2)/(cos(1/6*Pi*3^(1/2))-1)^(1/2)/(cos(1/6*Pi*3^(1/2))+1)^(1/2)*ln(cos(1/6*Pi*3^(1/2))+(cos(1/6*Pi*3^(1/2))^2-1)^(1/2)))+_C2*exp(-3^(1/2)*((cos(1/6*Pi*3^(1/2))-1)*(cos(1/6*Pi*3^(1/2))+1))^(1/2)/(cos(1/6*Pi*3^(1/2))-1)^(1/2)/(cos(1/6*Pi*3^(1/2))+1)^(1/2)*ln(cos(1/6*Pi*3^(1/2))+(cos(1/6*Pi*3^(1/2))^2-1)^(1/2))) = 4];
c:=[_C1, _C2];
solve(eqs,c);

#Error, (in convert/real_rat) too many levels of recursion

And

eqs:= [3^(1/4*3^(1/2))*exp(3/4*Pi)*_C1-1/3*exp(3/4*Pi)*3^(-1/4*3^(1/2)+1/2
)*_C2 = 1, _C1/(cos(1/3*Pi*3^(1/2))-1)^(1/4)/(cos(1/3*Pi*3^(1/2))+1)^(1/4)*exp(
3/4*Pi-1/2*Pi*3^(1/2))*(cos(1/3*Pi*3^(1/2))^2-1)^(1/4)*3^(1/4*3^(1/2))*((cos(1/
3*Pi*3^(1/2))^2-1)^(1/2)+cos(1/3*Pi*3^(1/2)))^(1/2*3^(1/2))-_C2*3^(-1/2-1/4*3^(
1/2))/(cos(1/3*Pi*3^(1/2))-1)^(1/4)/(cos(1/3*Pi*3^(1/2))+1)^(1/4)*(cos(1/3*Pi*3
^(1/2))^2-1)^(1/4)*exp(3/4*Pi-1/2*Pi*3^(1/2))*((cos(1/3*Pi*3^(1/2))^2-1)^(1/2)+
cos(1/3*Pi*3^(1/2)))^(-1/2*3^(1/2)) = 5*exp(-1/2*Pi*3^(1/2))]:
c:=[_C1, _C2];

solve(eqs,c)

#Error, (in convert/real_rat) too many levels of recursion

And

eqs:=[3^(1/2*3^(1/2))*exp(1/2*Pi)*_C1-1/6*3^(-1/2*3^(1/2)+1/2)*exp(1/2*Pi
)*_C2 = 5, _C1/(cos(1/6*Pi*3^(1/2))-1)^(1/4)/(cos(1/6*Pi*3^(1/2))+1)^(1/4)*exp(
1/2*Pi-1/6*Pi*3^(1/2))*(cos(1/6*Pi*3^(1/2))^2-1)^(1/4)*3^(1/2*3^(1/2))*((cos(1/
6*Pi*3^(1/2))^2-1)^(1/2)+cos(1/6*Pi*3^(1/2)))^(3^(1/2))-1/6*_C2*3^(-1/2*3^(1/2)
+1/2)/(cos(1/6*Pi*3^(1/2))-1)^(1/4)/(cos(1/6*Pi*3^(1/2))+1)^(1/4)*exp(1/2*Pi-1/
6*Pi*3^(1/2))*(cos(1/6*Pi*3^(1/2))^2-1)^(1/4)*((cos(1/6*Pi*3^(1/2))^2-1)^(1/2)+
cos(1/6*Pi*3^(1/2)))^(-3^(1/2)) = 2*exp(-1/6*Pi*3^(1/2))]:
c:=[_C1, _C2];

solve(eqs,c)

Trace shows they are coming from Algebraic: best unknown/equation

Cannot upload worksheet due to security. Here is screen shot

Variation of (a) Skin friction ∂W/∂Z​, (b) Heat Transfer ∂θ/∂Z​, and (c) Mass Transfer ∂ϕ/∂Z​ for γ=10.0, Pr=7.0, ε=1.0, Nt=0.4, and Nb=0.2.

10.0   0.03301 1.90406 0.21772
20.0   0.01212 1.90403 0.20269
30.0   0.00727 1.90402 0.19325
40.0   0.00522 1.90400 0.18645


how to get this values by solving the PDE by using the pdsolve method 

Variation of (a)W(b) θ and (c) ϕ for different value of γ when ε = 10.0, Nb = 0.4, ε = 10.0, Sc = 0.5 and Pr = 7.0.
consider X as 0.1

plume_work.mw

Could someone please check if this error happens in earlier versions of Maple? I have only Maple 2025.2 on Windows.

Unable to upload worksheet due to new security. Here is the code to run


restart;
integrand:=-3*(Pi-2*arcsin(tau))*(tau+1)^(1/2)*(tau+(tau^2-1)^(1/2))^(2*(tau^2-1)^(1/2)/(tau-1)^(1/2)/(tau+1)^(1/2))*(tau-1)^(1/2)*(-16/3*tau^2+Pi-2*arcsin(tau)+8/3)/(4*tau^2-4);

int(integrand,tau)

The error is 

Update dec 12, 2025

Here is another int() error. In Maple 2025.2.  It comes from

RationalTrigOnly: case ratpoly*trig(arg)
Error, (in unknown) too many levels of recursion

 

I still can not upload worksheet. So here is the code followed by screen shot

 

integrand:=-(tau+(tau^2-1)^(1/2))^(1/2*(tau^2-1)^(1/2)/(tau-1)^(1/2)/(tau+1)^(1/2))*(64*tau^4+Pi^2-4*Pi*arcsin(tau)+4*arcsin(tau)^2-64*tau^2+8)*(tau-1)^(1/2)*(tau+1)^(1/2)/(16*tau^2-16);

int(integrand,tau);
....
TrigOnly: case of integrand containing trigs
RationalTrigOnly: case ratpoly*trig(arg)
Error, (in unknown) too many levels of recursion


 

I did not make new question as this seems to be same source of error but can not be sure now.

Second update DEC 12, 2025

Here is 3rd one. Seems also the same. comes from RationalTrigOnly: case ratpoly*trig(arg)

integrand:=-(tau + sqrt(tau^2 - 1))^(2*sqrt(tau^2 - 1)/(sqrt(tau - 1)*sqrt(tau + 1)))*(Pi - 2*arcsin(tau))*(12*tau^2 + Pi - 2*arcsin(tau) - 6)*sqrt(tau - 1)*sqrt(tau + 1)/(16*tau^2 - 16);

int(integrand,tau);

Over the past year, I have spent a lot of time talking to educators, researchers, and engineers about AI. The feeling is almost universal: it is impressive, it is helpful, but you should absolutely not trust it with your math even if it sounds confident.

That tension between how capable AI feels and how accurate it actually is has been on my mind for months. AI is not going away. The challenge now is figuring out how to make it reliable.

That is where Maple MCP comes in.

Maple MCP (Model Context Protocol) connects large language models like ChatGPT, Claude, Cohere, and Perplexity to Maple’s world-class math engine.

When your AI encounters math, your AI can turn to Maple to handle the computation so the results are ones you can actually trust.

It is a simple idea, but an important one: Maple does the math and the AI does the talking. Instead of guessing, the AI can be directed to call on Maple whenever accuracy matters.

Model Context Protocol (MCP) is an emerging open standard that allows AI systems to connect to external tools and data sources. It gives language models a structured way to request computations, pass inputs, and receive reliable outputs, rather than trying to predict everything in text form.

Here is a high-level view of how MCP fits into the broader ecosystem:

MCP Architecture Diagram

Figure 1. High-level architecture of the Model Context Protocol (MCP)
Source: modelcontextprotocol.io

MCP lets an AI system connect securely to specialized services, like Maple, that provide capabilities the model does not have on its own.

If you want to learn more about the MCP standard, the documentation is a great starting point: Model Context Protocol documentation

Here is a glimpse of what happens when Maple joins the conversation:

Examples of Maple MCP in action

Figure 2. Examples of Maple MCP in action

Depending on the prompt, Maple MCP can evaluate expressions symbolically or numerically, execute Maple code, expand or factor expressions, integrate or solve equations, and even generate interactive visualizations. If you ask for an exploration or an activity, it can create a Maple Learn document with the parameters and sliders already in place.

As an example of how this plays out in practice, I asked Maple MCP:

“I'd like to create an interactive math activity in Maple that allows my students to explore the tangent of a line for the function f(x) = sin(x) + 0.5x for various values of x.”

It generated a complete Maple Learn activity that was ready to use and share. You can open the interactive version here: interactive tangent line activity .

In full disclosure, I did have to go back and forth a bit to get the exact results I wanted, mostly because my prompt wasn’t very specific, but the process was smooth, and I know it will only get better over time.

What is exciting is that this does not replace the LLM; it complements it. The model still explains, reasons, and interacts naturally. Maple simply steps in to do the math—the part AI cannot reliably do on its own.

We have opened the Maple MCP public beta, and I would love for you to try it.

Sign up today and we will send you everything you need to get started!

Currently, when I have solution to an ode, say y(x)=sin(x)+_C1 and have some initial condition, then to solve for _C1,  I manually substitute the solution into the IC and replace each x by x0 and replace each derivative manually and so on.

This is because I could not find automatic way to do this. Using another software, it is possible to automate this by writing the solution using the  y -> Function[{x}, ...] syntax. But in Maple, I was not sure how to do the same.

Here is a simple made up example. 

sol:= y(x) = sin(x)+_C1;
IC := a*D(y)(x0)+c*y(x0)= b*y0+exp((D@@2)(y)(x0));

The goal is to replace the solution (which is function y(x)) into the IC, and automatically replace all its derivatives and replace x by x0 then solve for _C1 from the equation that results.

Now I do this manually like this

eval(IC,[ y(x0)=eval(rhs(sol),x=x0), 
          D(y)(x0)=eval(diff(rhs(sol),x),x=x0), 
         (D@@2)(y)(x0)= eval(diff(rhs(sol),x$2),x=x0) ])

which gives

But this is too much work.

Using the other software, I can do the above much more easily like this

sol = y -> Function[{x}, Sin[x] + C[1]]
ic = a*y'[x0] + c*y[x0] == b*y0 + Exp[y''[x0]];
ic /. sol

I looked at algsubs, dchange, or making the solution as function instead, and so on but could not emulate the y -> Function[{x}, Sin[x] + C[1]] method in Maple.

What would be similar method in Maple to do the above automatically?  May be there is already builtin function in Maple?

I frequently receive this message after installing the most recent Maple update:

Can anyone help me with this? Thank you so much for your valuable support.

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:

 

My student, David Wei, has ported Andrew Hicks's MOISE package to Maple 2025:

GitHub - david-wei-01001/MOISE-for-Maple-2025: MOISE that is compatible with the newest Maple 2025 Engine

Regards,

Gerald Penn

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.

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