MaplePrimes Questions

As interior architects, we often have to fit a new staircase into an existing home, where the floor-to-floor height and the available horizontal run are fixed by the building. We already check comfort with Blondel's rule, which relates twice the riser height plus the tread depth to an average stride, and we keep the number of risers a whole number so that every step is identical. Today we do this by hand or in a spreadsheet, testing one riser count after another. In Maple, what would be a clean way to take the floor height, the available run and the comfort range as parameters, loop over the possible integer riser counts, and return every combination of riser height and tread depth that satisfies all the constraints? Would you use a simple loop that builds a list of solutions, or is there a more idiomatic approach with select or with integer constraints in the Optimization package? A small plot of the valid combinations would also help us compare options with our clients.

Contrary to the plot tab, the animation tab has no feature to orient the animation content interactively. 

plot3d example where "fine tuning" of the orientation is possible:

Is there a way (keyboard short cuts?) to do this?

If not, am I the only user missing such a feature?

I am trying to do some simple variable substitution, but for some reason Maple will not do/allow it. I am extremely puzzled by this, and the only workaround seems to be doing it by hand or changing variable names. Any thoughts would be appreciated. For some reason I cannot upload contents...

restart;
T=R/(2*Pi*l^2) - diff(C(R, Q, beta, c), R)/(4*Pi)
                              d                  
                             --- C(R, Q, beta, c)
                      R       dR                 
               T = ------- - --------------------
                         2           4 Pi        
                   2 Pi l                        

P = 1/(8*Pi*l^2)
                                 1   
                          P = -------
                                    2
                              8 Pi l 

isolate((2),l^2)
                           2     1   
                          l  = ------
                               8 P Pi

Want to replace l^2 in (1) with this expression (3), but won't allow it. 
subs((3),(1))
                              d                  
                             --- C(R, Q, beta, c)
                      R       dR                 
               T = ------- - --------------------
                         2           4 Pi        
                   2 Pi l                        


subs_error.mw

How can I input and display unicide characters? 
then I would like to add the characters to a special pallet.

restart;
UTF8(U + D7CF);
Error, invalid input: UTF8 expects its 1st argument, s, to be of type string, but received U+D7CF
UTF8("U+01 D7CF");
                          "U+01 D7CF"

"U+01 D7CF";
                          "U+01 D7CF"

U + D7CF;
                            U + D7CF

unicodeexamples
U+01 D7C9 
U +01 D7CF
U +01 2540
U +01 2541
   U list unicode examples + D7C9 U + D7CF U + 2540 U + 2541


Download 2026-11-10_Q_Unicode_Characters.mw

Is this a bug in Maple?  it gives error in Maple 2026.2 and also Maple 2025.2

restart;

ode:=-1/diff(Y(X),X)^3*diff(diff(Y(X),X),X)+4*X = piecewise(0 <= Y(X) and Y(X) < Pi,0,Pi <= Y(X) and Y(X) < 2*Pi,10,2*Pi <= Y(X),0);

solve(ode,diff(Y(X),X$2))

workaround is to use isolate instead of solve or Solve:

 

 

But why solve fails just because RHS is piecewise ?

Wanted to check before sending bug report in case it is by design.

I just opened maple to use it, and I receieved a notice that an update was available.  I proceeded with the update and it failed to install, complaining that "open programs" needed to be closed.  There were no open programs so I opted to have the installer "ignore" the warning.  However, it would not continue and it gave a list of two programs that were in use (even though I had closed Maple).  This is a snapshot of the warning.

 

It appears that the update may have completed as the maple version that appears during startup is 2026.1.  However, the program is very slow to open a new document (I have to click on the "New Document" button several times before it response) and very slow to close.(I have to click on the "X" icon (upper right of top menu) before it will close.

 

Any help would be appreciated.

Regards,

Frank DiJoseph

f := x -> 6*x - 1;

g := x -> -2*x + 33;

plot(f(x), g(x));
Error, (in plot) unexpected option: -2*x+33

Why no parentheses around "%" are needed here

cos^2 + sin^2 = 1;
%(x);
                           2      2    
                        cos  + sin  = 1

                           2         2    
                     cos(x)  + sin(x)  = 1

as they are required here (to group terms)
 

(cos^2 + sin^2 = 1)(x);
                           2         2    
                     cos(x)  + sin(x)  = 1

Is it because % (?ditto) is an operator or because of an evaluation rule?

I know the opposite: Maple treats (sin)(x) the same as sin(x), i.e. removes the parentheses.  
I also know that Maple has special evaluation rules for procedures (see ?last_name_eval) but the
"operator expression" cos^2 + sin^2 = 1 inside the parentheses is of type equation and not of type function/procedure.

I assume that % reevaluates a previously computed result stored in the kernel and not in the user interface but maybe I am wrong here. If equation labels are used instead of %, also no parentheses are needed, but in this case the equation label refers to output stored at the level of the user interface.

I could not identify a menu item in the ribbon interface under "Insert" (where it was with the former interface).

Let B and D be natural numbers. Prove that in the rational numbers there exist solutions (x;y) of the equation x^3-y^3=B^3+D^3 and the equation x^3-y^3=B^3-D^3, and find the solution formula and example solutions.

edited:

This problem becomes interesting when one searches for positive rational solutions x=x(B,D) and y=y(B,D).

I see my Maple has updated to 2026.2 What has been inproved in this release?

At a birthday party, the jubilarian in question observes:
If I substitute my current age for D in Pell X² – D Y² = 1, then X becomes my age next year, and Y is the age of my grandchild. Then how old we are?

I crated this "defs.mpl" File:
assume(a>0,b>=a,b>d,L>b,u>0,u<L):
def4 := ['L' = 2865, 'a' = 315, 'b' = 315, 'd' = 210, 'h' = 140]:
def5 := ['L' = 2865, 'a' = 315, 'b' = 315, 'd' = 280, 'h' = 140]:

clear:=proc()
 unassign('L',' a',' b',' d',' h');
 assume(a>0,b>=a,b>d,L>b,u>0,u<L);
 is(b>0);
end proc:

reassign:=proc(defs)
 clear();
 assume(a>0,b>=a,b>d,L>b,u>0,u<L);
 assign(defs);
 defs;
end proc:

Then it produced this Output:

> read "defs.mpl"
> assign(def4);
> def4;
          [2865 = 2865, 315 = 315, 315 = 315, 210 = 210, 140 = 140]

> clear();
                                     true

> def4;
                [L = 2865, a = 315, b = 315, d = 210, h = 140]

> reassign(def5);
                [L = 2865, a = 315, b = 315, d = 280, h = 140]

> def5;
               [L = 2865, a = 315, b = 315, d = 280, 140 = 140]

> def4;
               [L = 2865, a = 315, b = 315, d = 210, 140 = 140]

Why is here 'h' replaced by its value, while the other variable names are printed as expected.

In my Settings I specified that assumed variables shall not have an annotation.

What are the best techniques for performing introspection in Maple Documents?

I would like to use the content within a Maple Document (.mw) as input to calculations and operations within the same document. I am aware of the DocumentTools Package, but it seems that needs to open a copy of the current document to perform operations and is dependent on the current document being saved to disk rather than working with what is already in memory. What techniques are available to work with the document's data model and content within the document, such section headings, section structure, and paragraph text content - as opposed to just the variables that have been defined?
 

reordering an expression by separating rational and radical terms ?  

n^3/8 + (3*n^2*m*sqrt(t))/8 + (3*n*m^2*t)/8 + m^3*t^(3/2)/8      e.g.

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