Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Is there a short-cut for jumping to a specific output label in a Maple worksheet?

I have a Maple worksheet with over 200 labels:  (1), (2), ....., (236) etc?

"Find" does not seem to work.

Thanks

Frank Garvan

In the 3D figure, the z-axis currently extends only to zero; please extend it to include positive values. Also help needed in setting the optimal point which is not clearly visible now—how to adjust the view and labeling to highlight only its z-value. How can we Improve the overall clarity and positioning of the figure to enhance visual readability.

Q_figure.mw
 

Download Q_figure.mw

 

How to solve two boundary problems in one graph not getting graphs shown in pdf
symetry_paper_work.mw
symmetry_graphs_pdf.pdf

i  can determine the pdes by one variable which is work so good but in some of the pdes i have two function i can separate by hand but how i can do by maple?

Download linear.mw

i did a lot of trail to avoid for find my parameter in the last step of that i get this `[Length of output exceeds limit of 1000000]` and i don't know how to fix it i need to find that parameter but when i do substitution  is said this there is any way for hundle this situation 

help-parameter.mw

I was wondering whether MapleSoft has opted for an outdated concept. Here is Gemini's answer:

Yes, there are many alternatives to ribbon-based GUIs. The ribbon UI, while popular and effective for many applications (especially those with a large number of functions like Microsoft Office), isn't the only way to design an interface. Here are some common alternatives:

 

  • Traditional Menus and Toolbars: This is the classic approach seen in older software. A menu bar at the top provides access to all commands, while toolbars offer quick-access icons for the most common functions. Many applications, especially on Linux, still use this model. A variation is to allow the user to customize their toolbars.

  • Command Palettes: This is a popular approach in modern text editors and IDEs (like Visual Studio Code or Sublime Text). The user presses a keyboard shortcut to bring up a search bar that allows them to quickly find and execute any command in the application. This is highly efficient for power users who know what they're looking for.

  • Contextual Menus (Right-Click Menus): These menus appear when a user right-clicks on an element. They present a list of actions relevant to the selected item. This is a very common and intuitive way to provide functionality without cluttering the main interface.

  • Sidebar or Panel-Based Interfaces: This design uses a vertical panel, often on the left or right side of the screen, to display tools, options, or settings. This is often seen in design software, where the user can access layers, brushes, or properties from a dedicated panel.

  • Hamburger Menus: A three-line icon (the "hamburger") that, when clicked, reveals a menu of options. This is a very common design in mobile applications and is increasingly used in desktop web applications and software to save screen space.

  • Floating Toolbars/Heads-Up Display (HUD): These are toolbars that appear near the user's cursor or the selected object. This keeps the tools close to where the user is working, reducing mouse travel. This is a common pattern in creative applications like 3D modeling or video editing software.

The best choice depends on the type of application, the target user, and the platform. For applications with a huge number of features, a ribbon can be a good way to organize them visually. For applications with a more limited set of functions, or for a mobile-first design, a simpler approach is often better.

Nothing exciting new but the insight that Maple's GUI is a hybrid that adds to the ribbon other concepts. Since the Maple ribbon is young and not part of the training data set, I asked for a better GUI for Word instead:

A "better" GUI for Word is subjective, as different users have different needs. The current ribbon interface is great for discovering features, but it can also feel cluttered.

So, instead of just one idea, here are three different approaches that could improve the Word GUI for different types of users:

 

This GUI would learn from your habits. Instead of a static ribbon, the tabs and icons would change based on what you're doing.

  • Smart Ribbon: The ribbon would automatically switch to the most relevant tab. For example, if you highlight text, the "Home" tab would expand with formatting options like font size, bold, and color. If you're near a table, the "Table Design" and "Layout" tabs would appear instantly.

  • Contextual Command Palette: A simple keyboard shortcut (like Ctrl + K) would bring up a search bar in the middle of the screen. You could type "insert table of contents" or "change line spacing" and the command would execute without you having to hunt for it in the ribbon. This is a much faster option for power users.

 

This approach would strip away everything that isn't essential for a focused writing experience.

  • Floating Toolbar: When you start typing, the entire ribbon disappears. When you highlight text, a small, floating toolbar with only the most basic formatting options (bold, italic, font size, bullet points) appears right next to your cursor.

  • "Focus Mode" on Steroids: A dedicated "Focus Mode" would hide all menus, toolbars, and even the scroll bar. You would see only your document on a clean background. All advanced functions would be accessible through the command palette or a single-click button that temporarily brings back the full ribbon.

 

This design would let users build their own ideal workspace.

  • Customizable Side Panels: Instead of one giant ribbon, the GUI would be made of modular side panels that you could dock, undock, and resize. You could have a "Styles" panel on the left and a "Review" panel on the right, or a "References" panel that's only visible when you're working on a bibliography.

  • "My Tab": Users could create their own custom ribbon tab called "My Tab" and drag and drop their most-used commands into it. For example, a student might have "Footnote," "Citations," and "Table of Contents" all on one tab for easy access.

Each of these designs solves a different problem with the current ribbon. The Adaptive Interface helps you find what you need quickly, the Minimalist Interface promotes focus, and the Modular Interface gives you complete control over your workspace.

The highlighted passages point to areas that have been mentioned already in many comments on the GUI. However, there is one more that really stands in the way for me to work with the new GUI. It could be summarized as "Too many clicks". The former GUI (less intuitive, IMO) was in this respect much more optimzed for productivity.
For example, inserting a text passage or putting the cursor into a text passage implies that the user most likely desires formating options. With the new GUI it is required to click on the edit tab (after having clicked on the insert tab or even more clicky with the quick access bar, which is for this use case not  really quick).

With the former GUI (having a larger quick acess bar) and a tool bar (in red)

only one click was required with substantially less mouse movement.

Personally I would switch to the new GUI with the following improvements

  • a quick access bar that is customizable
  • a smart ribbon that switches to the edit mode tab when the cursor is placed on editable text or a new text/input/document block is inserted

Having the functions that I use most frequently available in the quick access tool bar (highlighted in yellow) would allow me to minimize the ribbon with the same productivity and even more screen space as before.

Keyboard shortcuts that differ from standard OS shortcuts are not a viable alternative for me.

Overall, the direction with the new ribbon seems to be right to get new users productive faster. It seems to be a good choice without clear alternatives, and its graphical design aligns much better with the core values Maple provides.

However, becoming productive fast does not mean that the productivity is high. From this perspective the former GUI is not outdated yet. The workflow with it is much faster and more focussed on math and code.

Perhaps MapleSoft has solutions that will make the new GUI even more productive than the former GUI. This would be great!

I have Maple 2016 and Matlab 2016b installed on my Windows destop.

When I run

with(Matlab);
openlink()

in a Maple worksheet the following error window appears.

After closing the window I also see the following error message,

Error, (in Matlab:-openlink) there was a problem finding or loading matlink.dll. Refer to ?Matlab,setup for help configuring your system to work with the Matlab-link.

How to fix the connection from Maple to Matlab?

Like i said before i have to change it to Maple 2025 should i download the 2025? and will my data disappear? or not?

Best regards MR

In Maple 2025, there are many strange issues, such as plot errors in math apps under Computer Science > Boolean Algebra, which did not occur in Maple 2024. Furthermore, in the 2025 version, when you open load package, some packages are blocked, and you must hide the taskbar to see the blocked packages. Finally, the Ribbon interface in Maple 2025 is really not suitable. Restart and startup code should not be placed in Home; some interfaces should be removed, or an option to retain the 2024 interface should be provided. I sincerely hope my suggestions are taken into consideration. Thank you.

My goal is to export images of curves where the output image has no background or equivalently, a fully transparent background. Is there a standard way to perform this task? I know that I can do this with the help of external software but I want to do it at the export stage in maple and avoid increasing the number of tools needed to perform the job. Eventually, I may want to generate many thousdands of curves/images with transparent backgrounds. 

Below I show how to make a plot while choosing a background with the color blue. I have found no way to select a fully transparent background. I expect this background transparency will be applied at the export image stage. 

how_do_I_plot_with_no_background.mw

To give an explicit example of what a plot with no background looks like, I make a plot in an unrelated software of a curve with no background. It's impossible to differentiate a white background from a transparent background in this environment, so we also show the same image embedded in an unrelated colored background also generated in an unrelated software.

In the image below, we can see how a image of a curve with a transparent background can be embedded over top of any other image without the blue square shown the the first example.

Getting an error while solving. Can we get a condition like  delta ( > or <)  delta3 × constant?
Note: All parameters are positive and greater than zero.          tau, tau1, delta, delta3, delta0 are between 0 and 1. 

restart

``

ineq := (1-delta-tau1)*d*Cv+w*delta*d+Rm*tau1*d+s2*d*(delta0-delta-tau1)+g1*tau1^2*d^2+g2*delta^2*d^2 <= R0m*tau1^2*d^2+(1-delta[3]-tau1)*d*Cv+w*delta[3]*d+s2*d*(delta0-delta[3]-tau1)+g2*(delta[3]+tau1)^2*d^2

(1-delta-tau1)*d*Cv+w*delta*d+Rm*tau1*d+s2*d*(delta0-delta-tau1)+g1*tau1^2*d^2+g2*delta^2*d^2 <= R0m*tau1^2*d^2+(1-delta[3]-tau1)*d*Cv+w*delta[3]*d+s2*d*(delta0-delta[3]-tau1)+g2*(delta[3]+tau1)^2*d^2

(1)

NULL

``

temp := collect(ineq,delta);

g2*delta^2*d^2+(-Cv*d-d*s2+d*w)*delta+(1-tau1)*d*Cv+Rm*tau1*d+s2*d*(delta0-tau1)+g1*tau1^2*d^2 <= R0m*tau1^2*d^2+(1-delta[3]-tau1)*d*Cv+w*delta[3]*d+s2*d*(delta0-delta[3]-tau1)+g2*(delta[3]+tau1)^2*d^2

(2)

new := simplify(temp - remove(depends,lhs(temp),delta) - select(depends,rhs(temp),delta));

-d*(d*g2*delta[3]^2+(2*d*g2*tau1-Cv-s2+w)*delta[3]+(-delta^2*g2+g2*tau1^2)*d+(-w+Cv+s2)*delta+(-Cv-s2)*tau1+s2*delta0+Cv) <= -d*(d*(g1-R0m)*tau1^2+(-Cv+Rm-s2)*tau1+s2*delta0+Cv)

(3)

simplify(solve(new,delta));

Warning, solutions may have been lost

 

Error, invalid input: simplify uses a 1st argument, s, which is missing

 
 

NULL

Download Q_on_solve.mw

Hi

I hope everyone is fine and doing well. I want to constrcut the set of monomials {p[0],p[1],...,p[m-1]} for any value of m for example, for m=6 the monoial is define as:

p[0]:=1;

p[1]:=x;

p[2]:=y;

p[3]:=x^2;

p[4]:=x*y;

p[5]:=y^2;

and similarly for m=10 the monomials should be given as:

p[0]:=1;

p[1]:=x;

p[2]:=y;

p[3]:=x^2;

p[4]:=x*y;

p[5]:=y^2;

p[6]:=x^3;

p[7]:=x^2*y;

p[8]:=x*y^2;

p[9]:=y^3;

I am waiting for your positive response. Please take care and thanks


A classical probability result says that if G1 and G2 are two independent Gamma random variables with same scale parameter (let's say 1 to simplify) and shape parameters a1 and a2 respectively, then Gk / (G1 + G2 ) is a Beta random variable with parameters (ak , a3-k ) (k=1..2).

In the attached file it is shown that (Maple 2015) function Statistics:-PDF fails in computing the PDF of Gk.
Noting strange here if you observe that even in the extremely simple case Z = X / (X+Y), where both X and Y are independent Uniform random variable with support [0, 1), Maple 2015 already fails in computing PDF(Z).

An alternative to Statistics:-PDF is to write explicitely the double integration which defines CDF(Z) (to begin with, and later PDF(Gk)) and ask Maple to do the integrations.
This approach works for Z but requires helping Maple when X and Y are still independent Uniform random variables but with respective non instanciated supports [0, a1) and [0, a2).

Applying to the Gamma-Gamma case the recipies I introduced in the Uniform-Uniform case does not give any result, unless in the very particular case where the shape parameters a1 and a2 are (strictly) positive integers.

All the details are in X_over_(X_plus_Y).mw

Do you have any idea how to prove with Maple the probability result mentioned at the head of this question?

PS: The "classical method" to do compute PDF(Z) consists in changing the integration variables < x1, x2 > into < x1 = v1v2, x2 = v2 (1-v1) > (see for instance Stack exchange)... but even after having dome it I still cannot get the desired result.

Thanks in advance.

Hi,

I use Maple 2024 (X86 64 LINUX), and am trying to calculate the sum of the prime factors of integers.

My code is as simple as something like this:

SumPrimeFactors := proc(n)
    local f, L, p;
    f := ifactor(n);
    L := [op(f)];
    return add(convert(op(1, p), integer), p in L);  # Sum base primes
end proc:

However, the above code returns the following result when I set n = 360:

> SumPrimeFactors(360);
                                     5 +  (2) +  (3)

while what I had expected is just an integer, 10 (= 5+2+3).
It seems the operation convert(op(1, p), integer) is not working properly, and "(2)" is recognized as an expression, not an integer, even after the convert operation.

I have no idea how I should rectiy it.
I would be glad if someone gives me a way to get it solved.
Thank you very much.

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