MaplePrimes Posts

MaplePrimes Posts are for sharing your experiences, techniques and opinions about Maple, MapleSim and related products, as well as general interests in math and computing.

Latest Post
  • Latest Posts Feed
  • Hi MaplePrimes, and all,

    Here is a new, to me, set of numbers
    defined by ,
    the first three numbers are {1,2,3}
    and then, 
    the next number is the sum of the three 
    previous numbers,
    so,
    {1,2,3,6,11,20, ... }
    but can only calculate a finite number of numbers
    the, so called, Tribonacci numbers
    could start with {0,1,0}
    see online
    https://oeis.org/A001590

    and
    triple_recursive_sequence_simple_first.mw

    triple_recursive_sequence_simple_first.pdf

    regards,
    Matt
     

    The new ribbon style user interface of recent Maple versions is well structured and visually much more appealing than the former user interface. Great for new users. However, I do not use the new Maple version for productive work because it is considerably slower to use: Much more clicks and mouse movements are involved than before, which breaks the flow.

    To improve this situation, I thought about customizing the quick access toolbar with menu items that I need all the time. With Maple 2026 this suggestion has become a less viable solution because the quick access toolbar shrunk in size and moved to a screen location with low mouse activity (to get there fast, the mouse has to move back and forth like Speedy Gonzales). The tiny buttons in the toolbar are hard to distinguish and to hit in one go (a golfer might say “it's rare like an eagle”). If you disagree, try to write text and switch to non-executable math (to enter a symbol) and switch back to text and continue writing. Do the same with the former user interface (e.g. Maple 2024) and compare.

    As a new suggestion I thought about adding a new tab "My Tab" to the ribbon that is customizable by the user. Here is what I would pick from the current ribbon items

    (A subset from 4 out of 10 tabs: The Home, Insert, Edit and Help tab. The latter is less important)

    I would probably also add these two items

    although they do not fully replace the former buttons from the contextual tool bar

    .

    I use the above buttons from the former user interface allot in text passages to toggle between text and non-executable math. They are also useful to change the input mode of an empty document block (instead of inserting a new line with the desired input mode and deleting unwanted input lines). These buttons were introduced with Maple 2021 to improve usability, now they are gone and with it the ease of integrating math into text. With Maple 2026, I have to go back to using F5, which now “toggles” between three states (with the drawback that now in 1-D Math no indication of the state of the input mode is available on the user interface).

    The above selection of menu items is my selection to work efficiently on textbook style Maple documents composed of explanatory text passages (including non-executable math) and Maple input and output. Other users would probably customize differently according to their needs.

    A final remark about the undo function. Most software has undo on a top level. I do not understand why undo is not in the current quick access toolbar.

    I strongly hope for productivity improvements that I can stop using Maple 2025.2 for Screen Readers (having the former user interface). Please do something to reduce mouse movements and clicks of frequently used interface functions. There is too much tab switching between the 3 most important tabs (Home, Insert, Edit) and too little functionality and ease of use of the quick access toolbar.

    I would be interested to know which menu items other users would select.

    Hi again Maple community, and others,

    want to share
    tiwn_and_cousin_prime_numbers.mw
    tiwn_and_cousin_prime_numbers.pdf
    (spelling error in file name)

    ~

    just want to share,
    some successful code

    The lesser of the twin primes are listed
    {3,5,11,17,29,41,59,71}
    https://oeis.org/A001359
    Prime numbers p such that p+2 is also a prime number

    also, the lesser of the cousin primes are listed
    {3,7,13,19,37,43,67,79,97}
    https://oeis.org/A023200
    prime numbers p such that p+4 is also a prime number

    good fun

    also, my webpage has more details
    https://mattanderson.fun
    okay

    regards,
    Matt

    Would it be possible to include the file path in $File for the proposed header/footer insertions.

    Thanks in advance

    Peter

    I am very pleased to announce the publication of my new book written together with Nic Fillion, "Perturbation Methods Using Backward Error", which uses Maple heavily throughout.

    You can find it at

    the SIAM bookstore

    and I hope that you find it useful and interesting.

    You can also find a paper in Maple Transactions, written with Michelle Hatzel, that explains how we generated the image that was chosen for the cover.  Exploring Cover Designs for an Upcoming Book  In the end, the SIAM design people chose a different one than we had thought, but they did pick one of the ones we generated!  

    This was fun to do.

     

    a rainbow-hued image with many levels; two dark blue spots connected by a horizontal and a vertical blue line from each that intersect; alarming red spots in the upper and lower left corner
     

    Over the past few months, I've created a number of short videos. My intention is to help people use Maple more effectively. I occasionally give workshops introducing Maple and its programming language, and many of the topics come from questions I get from the participants. 

    These can be found on our Youtube channel. Here are the ones posted so far.

    What is a Workbook?
    Creating a Workbook
    How to Customize Your Maple Settings with the Options Dialog
    What is Maple Transactions?
    How to Submit an Article to Maple Transactions
    Quotation Marks in Maple
    Using Single Quotes to Prevent Evaluation
     

    If you find these helpful and have suggestions for future videos, please leave a comment, thanks!

    > kernelopts(version);
    Maple 2026.0, X86 64 LINUX, Apr 28 2026, Build ID 2011354

    Maple 2026.1 

    We have just released an update to Maple. Maple 2026.1 includes further enhancements to the new AI Assistant and Plotting Themes, as well as Explore, accessibility, and the math engine. As always, we recommend that all Maple 2026 users install this update. 

    In particular, please note that this update includes a fix to the problem where titles do not show up when using the Explore commands title option.  As always, thanks for helping us, and your fellow Maple users, by letting us know! 

    This update is available through Tools>Check for Updates in Maple, and is also available from the Maple 2026.1 download page on web site, where you can also find more details.  

    My  post with a valid  question (second time) on the Migration Assistant add-on was deleted by a moderator who thought that it was spam.

    I have decided to uninstall Maple Flow altogether and consider Smath Solver or CalcTree instead. It is unfortunate that Maple has such a bad customer service.

    my second Question was deleted by a "moderator" !!!!!!!!! what is this censorship????????? (spam i was told)

    NULL

    restart;

    Error, invalid input: diff received theta(s), which is not valid for its 2nd argument

    `Christoffel symbols:`

    `Geodesic equations on the unit sphere:`

    diff(diff(theta(s), s), s) = 0

    diff(diff(phi(s), s), s) = 0

    NULL

    Download geodesics.mw

    it contained only the file geodesics.mw

    Jean-Michel 

    Hi mapleprimes, and all,

    did a little exploration with the Matrix() and ifactor() Maple commands.

    prime_factorization_of_one_digit_numbers.mw

    have a look
    no warnings, and no errors

    Regards,
    Matt

    Hi Maple community, and all,

    My intrest in prime numbers continues.

    Made a quick example file.

    3_tuple_admissible_example.mw

    3_tuple_admissible_example.pdf

    also, see my webpage for similar content
    https://mattanderson.fun
    and Norman, in Germany
    prime k-tuplets & Primzahlen

    Enjoy

    Matt

     

     

     

     

    Mathematics often feels precise and deterministic. We solve equations, follow logical steps, and do our best to arrive at exact answers. But sometimes, surprisingly, randomness can also lead us to deep mathematical truths. One of the most famous examples of this idea is a problem from the 18th century known as Buffon’s Needle.

    Imagine you have a floor made of long wooden planks placed side by side. The seams between the planks form a set of equally spaced parallel lines across the floor. Now, suppose you take a needle and randomly drop it onto the floor. Sometimes the needle lands entirely on one plank. Other times, it crosses one of the seams between planks, as shown below.

    Now here is the curious question posed by the French mathematician Georges-Louis Leclerc, Comte de Buffon in the 1700s:

    If we repeatedly drop the needle at random, what is the probability that it crosses one of the lines on the floor?

    At first glance, this sounds like a simple probability puzzle. But the answer turns out to involve one of the most famous numbers in mathematics: π.

    To keep things simple, assume the distance between the parallel lines on the floor is the same as the length of the needle. We can also imagine that all of our needles are thrown onto the same plank, potentially crossing onto the plank above or below. This configuration is equivalent to throwing the needle onto any plank as long as the planks are equally wide; this modification makes the analysis much simpler.

    Every time the needle lands, two things determine whether it crosses a line:

    • The distance x from the center of the needle to the nearest line
    • The angle θ at which the needle lands with respect to the parallel lines

    See a depiction of this below.

    To determine the probability of a needle crossing one of these lines, we need to describe what a "random drop" of the needle means mathematically. If the lines are the same length apart as the length of the needle L, then the center of the needle can never be farther than L/2 from the nearest line. Therefore, 0 ≤ x ≤ L/2. Next, we can simplify our domain for θ. The problem is symmetric, so we only need to consider angles between 0 and π/2. Any given half of the needle then has a vertical reach of (L/2)sin(θ).

    We will say a needle "crosses" a line precisely when the center lands close enough to a line that one end of the needle can reach across the line. This occurs when x ≤ (L/2)sin(θ).

    An important assumption to make is that every pair (x,θ) in the rectangle 0 ≤ x ≤L/2, 0 ≤ θ ≤ π/2 is equally likely. We’re assuming the needle lands with uniform randomness over all vertical positions x and angles θ. This means that the probability of crossing a line is the fraction of this region where the inequalities above hold. That is, 

    Probability = (area of favourable region) / (area of total region)

    The "rectangle" formed by inequalities has a total area of (L/2) * (π/2) = π*L/4. The needle crosses a line exactly when x ≤ (L/2)sin(θ), so for a fixed angle θ, the allowable x values are 0 ≤ x ≤ (L/2)sin(θ). The favourable area is then:

    The probability of a needle crossing a line is therefore:

    This result leads to a fascinating idea. If the probability of crossing a line is 2/π, we can rearrange the formula to estimate π itself:

    π ≈ 2N / C

    where:

    • N = the total number of needle drops
    • C = the number of times the needle crosses a line

    In other words, by performing a simple random experiment and counting how often the needle crosses a line, we can approximate π.

    For example, suppose you drop the needle 10,000 times and it crosses a line 6,366 times. Plugging these values into the formula gives

    π ≈ (2 × 10,000) / 6,366 ≈ 3.14

    With enough trials, the estimate tends to get closer and closer to the true value of π. At the bottom of this post, I attached a Maple worksheet that simulates this phenomenon. Below are results from simulating this result using N = 10, 100 & 1000, respectively. Notice as N increases, our approximation for π tends to become more and more accurate.

    Below is a more dynamic simulation from the Maple worksheet to show how the approximation stabilizes as N increases.

    What makes Buffon’s Needle so fascinating is the unexpected connection between geometry, probability, and one of mathematics’ most important constants.

    π usually appears when dealing with circles (circumference, area, rotation, etc). But in Buffon’s experiment, there are no circles at all. Instead, π emerges from the geometry of all the possible ways a needle can land on a set of parallel lines.

    This was one of the earliest examples of what we now call a Monte Carlo method, which is essentially using random experiments to estimate numerical values. Today, similar techniques are used in physics, finance, computer graphics, and machine learning.

    One of the best parts of Buffon’s Needle is that you can try it yourself. All you need is:

    • A toothpick or needle
    • A piece of paper with a sequence of parallel lines, each a distance of the needle's length apart
    • A lot of patience

    Drop the needle repeatedly (N times), record how many times it crosses a line (C), and compute 2N/C. The more times you repeat the experiment, the closer your estimate will get to π.

    After reading about this experiment, I was convinced that mathematics is not only about abstract symbols and formulas. Sometimes, even something as simple as dropping a needle onto the floor can reveal the hidden structure of elements of the universe that we would've otherwise never known were there.

     

    Buffons_Needle_Simulation.mw

    I have contacted Maplesoft support with the intend to send them corrupted Maple.ini files (that caused Maple 2026 installation to malfunction) for further analysis.

    Before sending I asked whether they were interested. In the email response support replied that they were happy that my problem has been solved. I replied that they apparently did not understand my first mail. Then I got this back.

    Hello,

    Thank you for clarifying! I apologize for not being more clear in my response.

    The issue with the preferences file (Maple.ini) was summarized in the MaplePrimes links that you provided which have been shared with our R&D team. They will be able to investigate the problem further.

    Please let us know if you have any questions or concerns.

    Best Regards,

    XXX(Name removed, 
    Case - 00191471 )
    Technical Support Analyst

     

    Apparently I have shared the files already. Not to my knowledge. Without my ini files no one can investigate the case.

    For me this answer sounds like an automated AI generated reply. That is not what I expect as a long-time customer and EPM participant (paying full price). Premium products should come with premium support!

    In this case I solved the installation problem myself with the help of this forum and wanted to support Maplesoft to make better products. Now I really feel like an idiot. Spending my free time with debugging, offering assistance, talking to a bot(?!?).

     

    Dear upper management and owners:

    If you have replaced support staff with bots that do not identify themselves as such, please reconsider what you are doing. Don't squeeze Maple for maximum profit and hide this. Think about your loyal customer base if you have a long-term growth strategy. The value of most companies lies in the people who work for them not in dumb, sloppy working bots. Humans want to deal with competent humans.
    And: Do not let AI code Maple. This will lead to sloppy untrustworthy code with definitly more support requests.

     

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