Applications, Examples and Libraries

Share your work here

We’ve just released Maple Flow 2022!

The name of the product – Flow - references a psychological concept known as the flow state. You might know it as being in the zone. That’s when you’re so immersed in your present task that outside distractions melt away, your problem solving skills are firing on all four cylinders, and feel-good neurochemicals flood your brain.

Maple Flow supports a mathematical flow state through a simple design that productively guides the loosely structured and somewhat haphazard way that most people work.

Since Maple Flow's release a year ago, we've regularly added new features through updates, and we're commited to maintaining that momentum. These updates are driven by user feedback, so keep sending your comments and requests my way.

Here’s what we have lined up for you in Flow 2022.

Flow 2022 features a new in-product help system - see it in action here:

In addition to copying & pasting equations and expressions from a help page, you can open entire help pages as worksheets. The nature of Flow means that the help pages have a certain immediacy that becomes very tangible once you start working with them.

You can change the background colour of containers to highlight important results or draw the reader's attention to specific groups of containers.

Prior versions of Flow were a toolbox that needed to be installed on top of Maple.

Now, Flow 2022 is completely standalone, and does not require an existing installation of Maple.This makes managing an installation of Flow far simpler.

A new options menu let you specify how you want worksheet hyperlinks to open – in the same application window, or in a new application window.

We've also made many other quality-of-life changes to Flow. Head on over to the Maple Flow website to learn more or download an evaluation.

If you do as much math as I do, you’ll likely agree that it’s important to take breaks from intensive work.  However, sometimes one wants to keep one’s mind stimulated with math.  This makes mathematical puzzles and games a perfect respite.  Alternatively, even if you don’t do as much math professionally, math puzzles are a fun and easily-accessible way to keep your mind sharp.  Games like sudoku and Rubik’s cubes are incredibly popular for good reason.

My personal favourite math puzzle is the nonogram, sometimes called hanjie, picross, or picture cross.  The game presents players with a blank grid of squares and clues indicating which ones should be colored in.  When the puzzle is solved, the colored squares depict a simple image.  You can read more thorough instructions here.

 


Nonograms are now available in Maple Learn!  These documents are coded using Maple scripts which can be viewed online in Maple Learn.  The document collection has pre-made puzzles and randomly-generated puzzles, and now you can create your own!  Use this document to create an image, and follow the instructions therein to generate the interactive puzzle.  Once you’ve created your own Maple Learn nonogram, use the sharelink to send it to friends!  Also keep your eye on the entire Maple Learn games collection for more in the future!

A user of ours came up with an interesting request: taking a procedure name as an argument and then within the procedure, return a set containing the names of all variables within the procedure. This task can be accomplished in one of two ways, one with local variables, one with global variables.

One method is:

find_vars_in_proc(f :: procedure, $)
  return {op(2, eval(f))};
end proc;

for variables that Maple unambiguously determines to be local variables. For global variables, a slight variation appears as:

find_vars_in_proc(f :: procedure, $)
  return {op(2, eval(f)), op(6, eval(f))};
end proc;

As always, typing ?procedure directly in the worksheet brings up the help guide containing more information on operands of a procedure!

Bon vendredi à tous! Je suis de retour avec un autre article de mise à jour détaillant les nouveautés que nous avons apportés à Maple Learn cette semaine. Bonne lecture!

Tout d'abord, nous avons ajouté des permutations et des combinaisons, ainsi que la notation binomiale, à Maple Learn ! Gardez l’œil à l’affût des documents utilisant ces nouvelles fonctionnalités et consultez nos exemples ici et ici. Les opérations se trouvent dans la palette des fonctions. Nous espérons que cela permettra de rendre votre création de document avec Maple Learn encore plus agréable !

Nous avons également mis à jour la syntaxe des graphiques paramétriques pour utiliser l'opérateur tel que. Veuillez consulter notre page d’instruction pour plus de détails (ici). Remplacez simplement la virgule de l'ancienne syntaxe par le |. À partir de là, placez vos restrictions et le tour est joué ! Un graphique paramétrique utilisant l'opérateur tel que.

Enfin, quelques changements mineurs à Maple Learn. Nous avons ajusté la taille de police par défaut à une police de taille 20. De plus, nous avons fait en sorte qu'il remplace automatiquement <= ou >= par le symbole ≤ ou ≥.

J'espère que ces nouvelles fonctionnalités sont tout aussi intéressantes pour vous qu'elles le sont pour moi ! Faites-nous savoir ce que vous pensez dans les commentaires ci-dessous.

Happy Friday everyone! I’m back with another update post detailing the new changes we’ve made to Maple Learn this week. Just keep reading, and we’ll get right into them.

First, we’ve added permutations and combinations, along with binomial notation, to Maple Learn! Keep an eye out for documents using these new features, and check out our examples here and here.  The operations can be found in the functions palette. We hope that this allows even more fun with documents on Maple Learn!

We’ve also updated the syntax for parametric plots to use the such that operator. Please see our how-to page for more detail (here). Simply replace the comma from the old syntax with the |. From there, place your restrictions, and voila! A parametric plot using the such that operator.

Finally, some minor changes to Maple Learn. We’ve adjusted the default font size to 20 point font. As well, we’ve made it automatically change <= or >= to the ≤ or ≥ symbol.

I hope these new features are just as exciting to you as they are to me! Let us know what you think in the comments below.

Users often wonder how the length(expr) command works.

length(expr) returns the length of expr.

For more information, see the ?length help article in Maple, or Online Help version

 

Probability is a field of mathematics that sees extensive use outside of academics.  Whether one’s checking the likelihood of rain on a weather app or the odds of winning the lottery, probability is everywhere.  My favorite application of probability is dice games like Dungeons and Dragons.  The game can be played very simply (choose to attack a monster, roll a 20-sided-die, try to exceed a certain number) or with a complexity that rivals high school math courses.  There are spells and abilities that modify one’s dice rolls, such as adding additional rolls to the total or rerolling the die and using the higher result.  A good player regularly asks themself when to activate certain buffs and how likely they are to succeed with or without them.

All of these questions boil down to the basics of probability.  Things that one learns in an introductory statistics course extend into countless applications.  Currently, I’m adding some of that knowledge to the Maple Learn document gallery, and I’m here to give a sneak peek.

First, I’ve built tree diagrams in Maple Learn.  Tree diagrams are a way to map probability across multiple events occurring in sequence.  Each branching path represents a series of events that have a specified probability of occurring.

Here’s an example: one morning I flip a coin to decide if I buy a lottery ticket.  If it’s heads, I do.  If I buy the ticket, I have a one in a million chance of winning the cash prize.  Drawn as a tree diagram…

I drew this using Maple Learn line, point, and label operations.

My new D&D-themed documents are a bit more exciting.  In the first, we explore a tree diagram with variable probabilities.  A brave hero makes their way into a dungeon, attacking any random monster they see.  How likely are they to land an attack?  Adjust the details of the question and watch the diagram change.


In the second, I used Maple program scripting to add a live randomized dice roller.  Many probability techniques are at play to analyze which of two buffs will do more good for a dice-rolling adventurer.

I plan on making more documents like these; keep your eyes on the Document Gallery probability collection for updates.

Les probabilités sont  un domaine des mathématiques largement utilisé en dehors des universités. Que l'on vérifie la probabilité de l’apparition de la pluie sur une application météo ou les chances de gagner à la loterie, les probabilités sont partout. Mon application des probabilités préférée est les jeux de dés comme Donjons et Dragons. Le jeu peut se jouer très simplement (choisir d'attaquer un monstre, lancer un dé à 20 faces, essayer de dépasser un certain nombre) ou avec une complexité qui rivalise avec les cours de mathématiques du lycée. Il existe des sorts et des capacités qui modifient les lancés de dés, comme ajouter des lancés supplémentaires au total ou relancer le dé et utiliser le résultat le plus élevé. Un bon joueur se demande régulièrement quand activer certains « buffs » et quelle est la probabilité qu'ils réussissent avec ou sans eux.

Toutes ces questions se résument aux bases des probabilités. Les choses que l'on apprend dans un cours d'introduction aux statistiques s'étendent à d'innombrables applications. Actuellement, j'ajoute certaines de ces connaissances à la galerie de documents Maple Learn je voulais vous en donner un aperçu.

Tout d'abord, j'ai construit des arbres de probabilité avec Maple Learn. Ceux-ci permettent de représenter graphiquement la probabilité de plusieurs événements se produisant en séquence. Chaque chemin de branchement représente une série d'événements qui ont une probabilité de se produire spécifique.

Voici un exemple : un matin, je lance une pièce pour décider si j'achète un billet de loterie. Si c'est face, je le fais. Si j'achète le billet, j'ai une chance sur un million de gagner l’argent. Dessiné sous forme d'arbre de probabilité…

J'ai dessiné ceci en utilisant les fonctionnalités ligne, point et étiquette de Maple Learn.

Mes nouveaux documents sur le thème de D&D sont un peu plus intéressants. Dans le premier, nous explorons un arbre de probabilités variables. Un héros courageux se rend dans un donjon, attaquant n'importe quel monstre aléatoire qu'il voit. Quelle est la probabilité qu'ils lancent une attaque ? Ajustez les détails de la question et regardez le diagramme changer.

Dans le second, j'ai utilisé la fonction script de Maple pour ajouter un lanceur de dés aléatoire en direct. De nombreuses techniques de probabilité sont en jeu pour analyser lequel des deux « buffs » fera le plus de bien à un aventurier qui lance les dés.

Je prévois de faire plus de documents comme ceux-ci; gardez un œil sur la catégorie de probabilités dans la galerie de documents Maple Learn pour les mises à jour.

Applications to develop exercises on systems of equations using the technique of determinants, Gauss and Crammer. For science and engineering students. In spanish.

Determinantes_Gauss_Crammer.mw

Lenin Araujo

Ambassador of Maple

In computer science, the Towers of Hanoi (Wiki) are considered a prime example of a problem that can only be solved recursively (or iteratively). The time for calculating a certain position n thus grows exponentially with O(2n). In this article an explicit solution is presented with which one can compute any position n with the same computing time O(1). This explicit solution is used in all animations.

Explicit solution

       The Standard Model of Particle Physics in Maple 2022

 

One of the most important mathematical formulations in human history is that of the Standard Model in particle physics. It describes all the elementary particles (leptons like the electron, quarks, bosons as the Higgs or the photon), which in different arrangements, form all the observable particles in nature. The formulation is not just a tremendous theoretical achievement that rendered Nobel prizes but also a practical one. Basically, all the measurements performed in the particle accelerators at CERN and the Fermilab take this mathematical, abstract formulation as the starting point. However, for computer algebra systems, the complexity of the model is somewhat extreme: is not only the number of terms in the corresponding Lagrangian impressively large but also the mathematical properties of each of these objects that represented a challenge for a long time. With hacks of different kinds, the computer algebra representation of only some aspects of the Standard Model was possible, with restricted computational capabilities.

Hidden among the novelties of Maple 2022, a breakthrough in computer algebra is the introduction of a new, fully computable representation of the Standard Model. This representation includes the accessory commands to calculate related scattering amplitudes  (the essence of the computations behind particle collision experiments) and related Feynman integrals . This is a remarkable achievement in computational physics. And from the educational point of view, it brings one more brick of knowledge from "the dark side" of the moon into "the bright side." Making the Standard Model computations be at the tip of one's fingers completely transforms the possible experience we can have with the underlying knowledge.
 

The illustration below of this new Maple 2022 StandardModel package is advanced in time with regards to the release of Maple 2022 days ago, and introduces a new command, Lagrangian, that increases one level the usability of the package. The so updated StandardModel is distributed as usual, within the Maplesoft Physics Updates for Maple 2022.
 

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

 

Download: StandardModel.mw

Edgardo S. Cheb-Terrab
Physics, Differential Equations and Mathematical Functions, Maplesoft

La pandémie de COVID 19 nous a forcé à nous lancés dans l'apprentissage en ligne - mais après deux ans, il est clair que l'apprentissage en ligne est là pour rester. La bonne nouvelle est que de plus en plus de recherches sont disponibles et nous donnant plus d'informations sur les avantages et inconvénients des différentes méthodes d'enseignement ainsi que leur impact sur l'apprentissage de l’élèves. Tout cela conduit à une question : comment l'enseignement peut-il être plus efficace en ces temps difficiles ? Nous discuterons des recherches effectués et leur lien avec Maple Learn. Cependant, je tiens à préciser que je ne prétends pas être un spécialiste du sujet. Je suis simplement un étudiant qui veut améliorer l'apprentissage en ligne pour moi-même et mes pairs.

Dans ce contexte il existe trois principaux styles d'apprentissage, convenus par les psychologues : apprentissage passif, actif et interactif. Cependant, aujourd'hui, nous allons nous concentrer uniquement sur l'apprentissage interactif. L'apprentissage interactif est l'endroit où l'élève agit comme «un sujet d'activité éducative» (Kutbiddinova, Eromasova et Romanova, 2016). Dans la pratique, cela signifie généralement que l'étudiant collabore avec ses pairs. Cette pièce est plus difficile lorsque les cours sont en ligne et/ou asynchrones. Personnellement, j'ai eu du mal à établir des liens avec mes pairs pendant mes études en ligne, car notre principale forme de communication était les messages sur les forums de discussion. Nous discuterons des avantages de l'apprentissage interactif, puis discutons de la façon dont Maple Learn peut être utilisé dans le modèle d'apprentissage interactif.

Le principal avantage de l'apprentissage interactif est qu'il encourage la participation active de toutes les personnes concernées. Lorsqu'ils sont encouragés à interagir avec leurs pairs dans des groupes plus petits, cela permet une plus grande participation des membres du groupe, par rapport au fait de poser des questions à toute la classe et de leur demander de lever la main pour répondre. Dans la même façon, l'apprentissage interactif crée plus d'engagement avec le matériel éducatif, ainsi que plus d'initiative de la part de l’étudiant (Ibid).

Dans un exemple discuté par Anderson en 2014, les étudiants se sont mis par paires et ils ont discuté de leur réponse à une question. Les étudiants, lors de l'exercice, devaient choisir sur une réponse, puis discuter de leur raisonnement qui a mené à ce choix,, dans le but de faire changer d'avis l'autre étudiant. Cela a créé une compréhension du matériel, ainsi qu'un investissement émotionnel dans le sujet.

Alors, comment Maple Learn peut-il aider à faciliter l'apprentissage interactif dans un environnement en ligne ? Commençons par recréer l'exemple d'Anderson, mais en ligne et avec une légère variation pour un cours de mathématiques.

À l'aide de Maple Learn, l'élève peut suivre toutes ses étapes, copier ses notes papier ou résoudre l'équation au fur et à mesure qu'il tape. Il peut également utiliser du texte pour expliquer son raisonnement pour chaque étape ou pour placer des formules à côté des mathématiques qu'il a utilisées.

À partir de là, l'élève peut utiliser la fonction de partage instantané pour échanger des documents avec quelqu'un d'autre dans la classe. Cela permet aux deux étudiants de voir le travail et le raisonnement de l'autre, sans avoir à lire des notes manuscrites numérisées. Cela signifie également que l'examen peut se produire de manière asynchrone, permettant aux étudiants de différents endroits et/ou fuseaux horaires de discuter. Contrairement à l'exemple original, puisque nous parlons de mathématiques, l'élève n'essaie pas nécessairement de convaincre l'autre élève. Les commentaires sur les mathématiques sont davantage utilisés pour donner des commentaires ciblés et soit comprendre soit d'autres façons de résoudre le problème, soit la bonne façon si elle a été mal résolue à l'origine.

S'éloignant de l'exemple, cette méthode peut également être utilisée pour l’annotation par les pairs. Maple Learn propose de nombreuses couleurs de police de texte différentes, permettant aux étudiants de laisser des commentaires sur le document, puis de générer un nouveau lien de partage instantané à renvoyer à l'étudiant d'origine.

Il existe bien d’autres façons d'utiliser Maple Learn pour l'apprentissage interactif, mais nous aimerions également connaître vos idées ! Veuillez nous faire savoir dans les commentaires si vous avez utilisé Maple Learn d'autres manières interactives, ou si vous avez des questions ou des suggestions à ce sujet.

The COVID 19 pandemic threw us for a spin with Online Learning – but after two years, it’s clear that Online Learning is here to stay. The good news is that more and more research is making its way to the classroom, giving us more information on the pros and cons of different teaching methods and how it impacts student learning. This all leads to one question: How can teaching be more effective during these tough times? Let’s discuss the research done and how it relates to Maple Learn. As a note, I do not claim to be an expert on this topic. I am simply a student attempting to improve online learning for myself and my peers.

There are three main styles of learning, in this context, agreed upon by psychologists: Passive, Active, and Interactive Learning. However, today we’re only going to focus on Interactive Learning. Interactive Learning is where the student acts as “a subject of educational activity” (Kutbiddinova, Eromasova, and Romanova, 2016). What this typically means in practice is the student collaborates with peers. This piece is much more difficult when classes are online and/or asynchronous. I know I struggled to make connections with my peers while in school online, as our main form of communication was discussion board posts. Let’s talk about the advantages of Interactive Learning first, and then discuss how Maple Learn can be used within the Interactive Learning model.

The main advantage of Interactive Learning is that it encourages the active participation of all involved. When encouraged to interact with peers in smaller groups, this allows more participation of the members of the group, compared to asking questions to the entire class and asking for them to raise their hands for answering. At the same time, Interactive Learning creates more engagement in the material, along with more student initiative (Ibid).

In one example discussed by Anderson in 2014, the students got into pairs and discussed their answer to a question. The students, in the exercise, had to commit to one answer and then discuss their reasoning behind the answer, in an attempt to change the other student’s mind. This created understanding of the material, along with emotional investment in the topic.

So, how can Maple Learn help to facilitate Interactive Learning in an online environment? Let’s start with recreating Anderson’s example, but online and with a slight twist to accommodate a math class.

Using Maple Learn, the student can go through all their steps, copying from their paper notes, or solving the equation as they type. They can also use text to explain their reasoning behind taking each step, or to place formulas beside the math they’ve used.

From there, the student can use the snapshot share feature to swap documents with someone else in the class. This allows both students to see the other’s work, and reasoning, without having to read scanned handwritten notes. This also means the review can happen asynchronously, allowing students from different places and/or time zones to discuss. In contrast to the original example, since we’re discussing Math, the student is not necessarily trying to convince the other student. The comments on the math are used more for giving targeted feedback, and understanding either other ways of solving the problem, or the correct way if originally solved wrong.

Taking a step away from the example, this method can also be used for peer marking. Maple Learn offers many different text font colors, allowing students to leave comments on the document, then generate a new snapshot to send back to the original student.

There are many other ways Maple Learn could be used for Interactive Learning, but we’d like to hear your ideas too! Please let us know in the comments if you’ve used Maple Learn in other Interactive ways, or if you have any questions or suggestions for us.

 

Works cited:

Anderson, Jill. “The Benefit of Interactive Learning.” Harvard Graduate School of Education, 2014, https://www.gse.harvard.edu/news/14/11/benefit-interactive-learning.

Kutbiddinova, Rimma, et al. “The Use of Interactive Methods in the Educational Process of the Higher Education Institution.” INTERNATIONAL JOURNAL OF ENVIRONMENTAL & SCIENCE EDUCATION, 2016, Accessed 2022.

One way to show all solutions of a polynomial in one variable.
The root is the intersection of curves representing the imaginary part of the equation (red) and the real part (blue). These equations are obtained after representing the variable as the sum of its imaginary and real parts. The circle limits the area where all the roots are located (according to theory).
Example      -15*x^7+x^2+I*x+2=0;
polynomial_roots_graph.mw

Explorer 1 was the first satellite sent into space by the United States. It was a scientific instrument that led to the discovery of the Van Allen radiation belt. In order to keep its orientation, the satellite was spin stabilized. Unexpectedly, shortly after launch, Explorer 1 flipped the axis of rotation. The animation below shows, on the left, Explorer 1 in its initial state after launch, rotating about the axis of minimum moment of inertia. On the right side, 100 minutes later in the simulation, Explorer 1 rotates about the axis of maximum moment of inertia. This unintended behavior could not be explained immediately. Finally, structural damping in the four whip-like antennas was made responsible for the flip (explained here).

The flip can be reproduced with MapleSim using flexible beam components with damping enabled. Without damping and without slight angular misalignment at launch the flip does not manifest.

The simulation is only of qualitative nature since data of the antennas could not be found. On images of Explorer 1, the antennas look prebend and show large deflections of about 45 degrees under gravity. Since rotation of the satelite stretches the antennas, no modeling of large deflections needed to be considered in the simulation and rather stiff antennas (2 mm in diameter) without spheres at their ends were used. (Modeling large deflections with high fidelity might only be considered if the unfolding process of the antennas at launch is of interest. This should be modeled with several flexible beam components.)  

The graph bellow shows the evolution of the angular velocity in x direction. Conservation of angular momentum reduces the angular velocity when the satellite starts flipping towards a rotation about the axis of maximum moment of inertia.

Not long ago such simulations would have been worth a doctoral thesis. Today its rather straight forward to reproduce the flip with MapleSim.

Not so easy is the calculation of energy and angular momentum (for the purpose of observing how well numerics preserve physical quantities in rather long calculations. After all, the solver does not know the physical context). Such calculations would require access to the inertia matrix of the cylinder component including a coordinate transform into the frame of reference where the vector of rotation can be measured.

In case such calculations are possible with MapleSim, it would be nice if someone can update the model or at least indicate how calculations can be done.

Explorer_1_Parameters_and_links.mw

Explorer_1.msim

On a side note: I learned from the flip in an excellent series of lectures on dynamics. Wherever our professor could, he came up with animation in hardware. In this case, he could only provide an exciting story about the space race and sometimes fruitful mistakes in science. That’s why I still remember it.

First 6 7 8 9 10 11 12 Last Page 8 of 71