MaplePrimes Questions

Hello,

I want to define these two equations.I know how I can define a Tensor, but how can I use a Tensor with tue diffrent indices. In one case I need u[i] , but I need also u[j]. I know also, that I need an extra command if I want to use latine letters. Can somebody write this complete for me ?

Thank you 

Hello,

I was wondering whether there is a way to achieve the same result as the code below, but using threads instead of Grid.

The problem is the following. Given a very large list of models (the example below contains only two models), I would like to return a set of sets using a simpler notation for the alpha parameters.

Example

models:=[[y^2*z*alpha[1, 17], z^3*alpha[2, 19], x*z^2*alpha[3, 15] + z^3*alpha[3, 19]], [y^2*z*alpha[1, 17], z^3*alpha[2, 19], x*z^2*alpha[3, 15] + y*z^2*alpha[3, 18]]]:

Desired output

{{[1, 17], [2, 19], [3, 15], [3, 18]}, {[1, 17], [2, 19], [3, 15], [3, 19]}}

The order of the elements does not matter, but the final result should be a set of sets.

The code I am currently using is

svars:={x,y,z}:
Grid:-Set('svars'):
convert(Grid:-Map(w->map(v->[op](v),indets(w,name) minus svars),models),set)

Unfortunately, indets is not listed as thread-safe, so I cannot simply replace Grid:-Map with Threads:-Map.

Is there a thread-safe alternative (or a completely new way of doing the same thing) that would achieve the same result?

Many thanks.

equ:=2*(-wu2*w12*JacobiDN(w12*tanh(t*wt1 + wx1*x + b5)^2, m)*JacobiSN(w12*tanh(t*wt1 + wx1*x + b5)^2, m) + wu3*w13 + wu4*w14)*wt1*tanh(t*wt1 + wx1*x + b5)*sech(t*wt1 + wx1*x + b5)^2 + 2*(-wu2*w12*JacobiDN(w12*tanh(t*wt1 + wx1*x + b5)^2, m)*JacobiSN(w12*tanh(t*wt1 + wx1*x + b5)^2, m) + wu3*w13 + wu4*w14)*wx1*tanh(t*wt1 + wx1*x + b5)*sech(t*wt1 + wx1*x + b5)^2 + 2*omega*(b5 + wu2*JacobiCN(w12*tanh(t*wt1 + wx1*x + b5)^2, m) + wu3*w13*tanh(t*wt1 + wx1*x + b5)^2 + wu4*w14*tanh(t*wt1 + wx1*x + b5)^2)*(-wu2*w12*JacobiDN(w12*tanh(t*wt1 + wx1*x + b5)^2, m)*JacobiSN(w12*tanh(t*wt1 + wx1*x + b5)^2, m) + wu3*w13 + wu4*w14)*wx1*tanh(t*wt1 + wx1*x + b5)*sech(t*wt1 + wx1*x + b5)^2 - (48*tanh(t*wt1 + wx1*x + b5)*wx1*sech(t*wt1 + wx1*x + b5)^8*(sinh(t*wt1 + wx1*x + b5)^2*JacobiSN(w12*tanh(t*wt1 + wx1*x + b5)^2, m)^3*JacobiDN(w12*tanh(t*wt1 + wx1*x + b5)^2, m)*m^2*w12^3*wu2 + JacobiCN(w12*tanh(t*wt1 + wx1*x + b5)^2, m)*cosh(t*wt1 + wx1*x + b5)^2*m^2*w12^2*wu2*(cosh(t*wt1 + wx1*x + b5)^2 - 3/2)*JacobiSN(w12*tanh(t*wt1 + wx1*x + b5)^2, m)^2 - (2*JacobiSN(w12*tanh(t*wt1 + wx1*x + b5)^2, m)*(-cosh(t*wt1 + wx1*x + b5)^6/4 + (3*cosh(t*wt1 + wx1*x + b5)^4)/4 + sinh(t*wt1 + wx1*x + b5)^2*w12^2*(m^2 + 1/4))*w12*wu2*JacobiDN(w12*tanh(t*wt1 + wx1*x + b5)^2, m))/3 - cosh(t*wt1 + wx1*x + b5)^2*(3*(cosh(t*wt1 + wx1*x + b5)^2 - 3/2)*w12^2*wu2*JacobiCN(w12*tanh(t*wt1 + wx1*x + b5)^2, m) + cosh(t*wt1 + wx1*x + b5)^2*(cosh(t*wt1 + wx1*x + b5)^2 - 3)*(w13*wu3 + w14*wu4))/6)*wt1^2)*NULL

Can Maple solve recurrence relations involving two variables?

For example, consider the relation:

P(n, m) = p*P(n - 1, m) + (1 - p)*P(n, m - 1)

with boundary conditions:

P(n, 0) = 0, P(0, m) = 1

I’d like to know how to obtain a solution for P(n, m) in Maple.

For many years I have used my own Style Set in Maple, mainly by adding a few extra heading styles (typically coloured headings). This has worked very well.

In Maple 2026, the default body text font has been changed to DejaVu Sans. Since the mathematical notation is still displayed in a serif math font (for obvious reasons), I feel that 12 pt DejaVu Sans appears noticeably larger than the mathematics because of its relatively large x-height. To my eyes, 11 pt gives a much more harmonious balance.

I therefore tried to change the built-in Text style from 12 pt to 11 pt.

However, I noticed something very strange.

When I open Style Management, select Text, and click Modify, the Character Style dialog already shows the font size as 11 pt (see the first screenshot). Nevertheless, when I switch to Text mode and start typing, the body text is still created as 12 pt, and the toolbar also reports a font size of 12 pt.

If I create my own custom style (for example, text11) with a font size of 11 pt, it works exactly as expected.

Is the built-in Text style intentionally overridden somewhere by the default Style Set, or is this a bug?

For comparison, I have also attached a second screenshot showing the visual difference between 12 pt and 11 pt body text. In my opinion, the 11 pt version blends much better with the mathematical notation.

 

 

 

When our students import data from an Excel file into Maple using Tools > Import Data, everything works as expected.

After doing some experiments, however, I realized that the data from the Excel file is not embedded in the Maple worksheet. That is probably a sensible design choice for large datasets. However, I also discovered that Maple stores an absolute path to the Excel file.

For example, suppose I have the files

importdata.mw
data.xlsx

in the same folder. If I copy that entire folder to another location, the copied Maple worksheet still refers to the original Excel file rather than the one located in the same folder as the worksheet. If the original folder is renamed or removed, re-executing the worksheet results in errors because Maple can no longer find the Excel file.

This makes it difficult to distribute teaching material to my students. Ideally, I would like to give them a ZIP file containing both files. After extracting the ZIP file, the worksheet should simply use the data.xlsx file located in the same folder. Instead, the students have to import the Excel file again manually, which is rather inconvenient.

My question is: Is there a way to make Maple use a relative path instead of an absolute path when importing Excel data?

I am happy to use a single line of Maple code if necessary, but I would prefer not to introduce several lines of code or programming constructs. We do not really teach Maple programming; our students mainly work with the graphical interface (tabs and ribbons).

I hope someone can help.

Erik

This is about avoiding that automatic simplifcation removes a factor of "1" before a unit.

Example output with removed factors:

Readers of technical notes not familar with Maple interprete the above missing values before units as layout errors.
Also reading it (e.g. with a screen reader) sounds strange: "m_l equals kg" or "m_1 of kg".  As a work around a float one (i.e.: 1.) can be used, which in some instances does not look as nice as

To improve the above I thought of an inert "1" or an inert multiplication that could be removed by the value command in subsequent calculations (not necessarily visible in a document to the reader when the input is hidden).
I could not find a way for an inert "1". With inert multiplication using %* a grey asterix is printed

Can we make the grey multiplication symbol invisble?

Related discussion on 0 mm and 1 mm

https://www.mapleprimes.com/questions/241946-Round-With-Units#answer313597

Maple 2026 print layout

PDF created with print -> Adobe pdf printer -> save to file

Is that related to the attached worksheet or my installation?
If that is not reproducible on other installations, can I someone provide a file that prints correctly to test my installation?

Anything I can do about the mixed up fonts?

pdf_print.mw

Other question: Where is the pagesetup in Maple 2026? Maple shows in the printlayout a pagebreak at about 80% of the displayed page. AI could not tell me

(edit) where the page setup is to adjust the page size.

I am adding 'specificheat' as a property to the Element database in Maple.

In my .mapleinit I have added the property so it is permanent

I have a Package that loads the values in from a table using

  ScientificConstants:-ModifyElement(parse(elemt),specificheat=[value=data[i,4]*1000,units='J/kg/K']);

which runs in a loop for all elements I have values for. This all works.

My issue: GetUnit() returns a unit of m^2/(s^2*K). While this is not wrong, I want it to stay J/(kg*K), which is much more suitable for my work (and, besides, is the SI unit for specific heat). I can use convert to fix it on a case-by-case basis, but that is decidedly clumsy.

Is there a way to do that?

This is in Maple 2015. I have access to Maple 2023 as well, but not where I am right now. I really need this to work on all of them.

TIA,

M.D.

In the following example, the result of PDETools:-dchange()  is unexpected.  This may be due to my misunderstanding of the documentation, or (hopefully not) a bug.  Any comments?

restart;

with(PDETools):

Differential equation over 0 < x and x < 5:

de := diff(u(x),x) + x*u(x) = 0;

diff(u(x), x)+x*u(x) = 0

Transform the domain from 0 < x and x < 5 to 0 < xi and xi < 1:

tr := x = 5*xi,  u(x) = v(xi);

x = 5*xi, u(x) = v(xi)

dchange({tr}, de, {xi, v(xi)});

(1/5)*(diff(v(xi), xi))+5*xi*v(xi) = 0

That's good.  Now do the same thing to a generic first order ODE:

DE := F(x,u(x),diff(u(x),x));

F(x, u(x), diff(u(x), x))

dchange({tr}, DE, {xi, v(xi)});

F(xi, v(xi), (1/5)*(diff(v(xi), xi)))

That's not good.  The first argument of "F," which was x, should have changed to 5*xi.

 

Download dchange-problem.mw

 

The two uploads are my attempt to solve Problem 177 in the book "200 More Puzzling Physics Problems" by authors Peter Gnadig, Gyula Honyek and Mate Vigh.

The first upload of a conducting rod moving with initial velocity along two arms of a triangle in a perpendicular constant magnitic field successfully produces an animation.

The second upload of the rod moving on the arms of a parabola produces a puzzling error message when executing the ODE

What actual error in the ODE results in this error message?

What changes to the worksheet will result in successful execution of the ODE and a successful animation?

Rod_triangle.mw

Rod_parabola.mw

Are there any demonstration help videos on creating an eBook? Currently I am struggling with the pages Having a laid out example would really help.  

I would like to do an eBook version of my help pages to send to some people. Hopefully I can use the current help worksheets. The are formatted based on the Maple help structure.

My currrent structure in the help section is:

Rational Trigonometry

      (about 40 help topics)

       RTProjective

       (about 20 help topics)

       UHG

       (about 20 help topics)

     Edit:- I have made a small step of progress using the " Assistant eBook template" but I am getting this error on build. I don't know how to find the cause of the error.

I would like to solve an equation in the attached file as an exercise. I am looking for all solutions - including the complex ones. This is easily done using "derive". There are six solutions:

restart

solve(2^x*(2+sqrt(3))^x-2*(1+sqrt(3))^x = 2, x)

RootOf(2^_Z*(2+3^(1/2))^_Z-2*(1+3^(1/2))^_Z-2)

(1)

NULL

edited "test":

test.mw

Five are complex, and the single real solution can be guessed simply by taking a close look. I am unable to obtain the complete solution in Maple; I cannot find my mistake and would appreciate some advice.

I tried to evaluate the function

convert(BesselJ(nu, x), FormalPowerSeries)

only to obtain the Error message

Error, (in convert/FormalPowerSeries) input contains no or more than one variable.

Seems a rather strange error. I thought it would treat x as a single variable

@aroche 

Is there a Maple Support Update package for Maple 2025 ? If so, how do I download it?

Thanks, Roy

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