Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

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.

Hi Maple community, and all,
an arbitrary arithmetic progression, with starting value , s, 

and increasing by "a", where "a" is the value to add, every time,
so
{Arithmetic Progression} is found by calculating
s+a*index

where index is a running index 
see attached
arithmetic_progression_with_1_and_8.mw

arithmetic_progression_with_1_and_8.mw

hopefully, that is useful, as an example, of an arithmetic progression.

Regards,
Matt

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.

Every four years, the world comes together to watch one of the most anticipated sporting events in history: the FIFA World Cup.

Behind all the anticipation, venue planning, and media fanfare, there are many artists and researchers who devote themselves to designing a new FIFA World Cup ball to be rolled out for the public eye (pun intended).

This post presents an overview of the geometric ideas behind the design of the FIFA 2026 "Trionda" ball, using Maple to visualize and explore these concepts in depth. The ideas presented here were inspired by this Scientific American Article. For more information and facts about the 2026 Trionda ball, as well how the shape of the ball impacts play on the pitch, I suggest you check it out!

FIFA ball designs are often inspired by one of the 5 Platonic solids. A Platonic solid is a convex polyhedron with each face being the same regular polygon with the same number of faces meeting at each corner.

This year, the Trionda ball was constructed from the simplest of these shapes, the tetrahedron, consisting of 4 triangles, with 3 faces meeting at each corner. Of the five Platonic solids, this shape has the fewest faces, making it the least sphere-like. Turning such a simple polyhedron into a smooth ball is therefore a surprisingly challenging geometric problem.

  

 

So how can we turn our pointy tetrahedron into something that rolls? Rather than trying to transform the entire tetrahedron at once, we can start by redesigning a single triangular face. The goal is to create a curved triangle that will fit perfectly with three identical copies of itself while covering the surface of a sphere.

 

 
 
Notice that in the above diagrams, the transformed triangle has the same area as the original triangle. Although the edges have been reshaped, no area is added or removed, only redistributed. Preserving the area ensures that four identical curved panels can still cover the sphere completely without leaving gaps or overlapping.
 
Now that we know how to change one face of the tetrahedron, we need to perform the same sort of transformation (from a triangle to a curved tile), on the surface of a sphere. To start, we can inscribe the tetrahedron inside the sphere, like this:
From here, we can project the edges of the tetrahedron onto the sphere, creating six great-circle-arcs (also known as geodesics) as shown in the diagram below.
Each region enclosed by these geodesics corresponds to one triangular face of the tetrahedron within the sphere. By transforming each geodesic triangle into a smooth curved tile (using a bit of AI help), we create a tiling of the surface similar to that of the 2026 FIFA World Cup ball!
Because each curved tile maintains the area of the geodesic-generated region, the four panels form a complete tiling of the sphere. 
 
I would have liked to find a better function between the points on the sphere that resemble the actual Trionda ball more accurately but didn't get the chance to dive into that. If you want to take on the challenge and are successful, please reply in the comments.
 
To see the Maple Worksheet used to generate these diagrams, check out: Trionda Ball Worksheet

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

Hi Maple community, and all,

Have a small ask, regarding prime numbers.

see attached

vertical_list_of_prime_numbers.mw

vertical_list_of_prime_numbers.pdf

Thanks in advance.

Regards,

Matt

I cannot find a description of the use of the form of dsolve and the following evaluation of its constants which are found in the downloaded worksheet.

Gnadig_2_problem_177_Rod_moving_on_a_wire_in_B_field.mw

Dear sir how to plots the graphs in three region BC from -1 to 0 and 0 to 1 and 1 to 2 
3_region_work.mw

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